1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 12:25:20 +03:00

Changed defines for GYRO/ACC/MAG/BARO/GPS/SONAR/OSD/BLACKBOX/CMS to conform to the USE_ convention.

This commit is contained in:
mikeller 2017-11-05 08:46:59 +13:00
parent 62c5711ce7
commit a8d34dabb0
152 changed files with 589 additions and 588 deletions

View file

@ -141,7 +141,7 @@ void processRcStickPositions(throttleStatus_e throttleStatus)
static uint8_t rcDisarmTicks;
static bool doNotRepeat;
#ifdef CMS
#ifdef USE_CMS
if (cmsInMenu) {
return;
}
@ -224,13 +224,13 @@ void processRcStickPositions(throttleStatus_e throttleStatus)
// GYRO calibration
gyroStartCalibration(false);
#ifdef GPS
#ifdef USE_GPS
if (feature(FEATURE_GPS)) {
GPS_reset_home_position();
}
#endif
#ifdef BARO
#ifdef USE_BARO
if (sensors(SENSOR_BARO))
baroSetCalibrationCycles(10); // calibrate baro to new ground level (10 * 25 ms = ~250 ms non blocking)
#endif