1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 01:05:27 +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

@ -167,19 +167,19 @@ void initActiveBoxIds(void)
BME(BOXHEADADJ);
}
#ifdef BARO
#ifdef USE_BARO
if (sensors(SENSOR_BARO)) {
BME(BOXBARO);
}
#endif
#ifdef MAG
#ifdef USE_MAG
if (sensors(SENSOR_MAG)) {
BME(BOXMAG);
}
#endif
#ifdef GPS
#ifdef USE_GPS
if (feature(FEATURE_GPS)) {
BME(BOXGPSHOME);
BME(BOXGPSHOLD);
@ -187,7 +187,7 @@ void initActiveBoxIds(void)
}
#endif
#ifdef SONAR
#ifdef USE_SONAR
if (feature(FEATURE_SONAR)) {
BME(BOXSONAR);
}
@ -207,7 +207,7 @@ void initActiveBoxIds(void)
}
#endif
#ifdef BLACKBOX
#ifdef USE_BLACKBOX
BME(BOXBLACKBOX);
#ifdef USE_FLASHFS
BME(BOXBLACKBOXERASE);