1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 23:05:19 +03:00

Fixed 'ifndef' cases for change to 'USE_<x>'.

This commit is contained in:
mikeller 2017-11-05 22:49:56 +13:00
parent 7643e1cff0
commit 1ff9c27314
3 changed files with 7 additions and 7 deletions

View file

@ -2002,13 +2002,13 @@ static void cliFeature(char *cmdline)
if (strncasecmp(cmdline, featureNames[i], len) == 0) { if (strncasecmp(cmdline, featureNames[i], len) == 0) {
mask = 1 << i; mask = 1 << i;
#ifndef GPS #ifndef USE_GPS
if (mask & FEATURE_GPS) { if (mask & FEATURE_GPS) {
cliPrintLine("unavailable"); cliPrintLine("unavailable");
break; break;
} }
#endif #endif
#ifndef SONAR #ifndef USE_SONAR
if (mask & FEATURE_SONAR) { if (mask & FEATURE_SONAR) {
cliPrintLine("unavailable"); cliPrintLine("unavailable");
break; break;

View file

@ -440,11 +440,11 @@ static void validateAndFixConfig(void)
featureClear(FEATURE_SOFTSERIAL); featureClear(FEATURE_SOFTSERIAL);
#endif #endif
#ifndef GPS #ifndef USE_GPS
featureClear(FEATURE_GPS); featureClear(FEATURE_GPS);
#endif #endif
#ifndef SONAR #ifndef USE_SONAR
featureClear(FEATURE_SONAR); featureClear(FEATURE_SONAR);
#endif #endif
@ -468,7 +468,7 @@ static void validateAndFixConfig(void)
featureClear(FEATURE_DASHBOARD); featureClear(FEATURE_DASHBOARD);
#endif #endif
#ifndef OSD #ifndef USE_OSD
featureClear(FEATURE_OSD); featureClear(FEATURE_OSD);
#endif #endif

View file

@ -56,7 +56,7 @@ static pidProfile_t *pidProfile;
static void blackboxLogInflightAdjustmentEvent(adjustmentFunction_e adjustmentFunction, int32_t newValue) static void blackboxLogInflightAdjustmentEvent(adjustmentFunction_e adjustmentFunction, int32_t newValue)
{ {
#ifndef BLACKBOX #ifndef USE_BLACKBOX
UNUSED(adjustmentFunction); UNUSED(adjustmentFunction);
UNUSED(newValue); UNUSED(newValue);
#else #else
@ -73,7 +73,7 @@ static void blackboxLogInflightAdjustmentEvent(adjustmentFunction_e adjustmentFu
#if 0 #if 0
static void blackboxLogInflightAdjustmentEventFloat(adjustmentFunction_e adjustmentFunction, float newFloatValue) static void blackboxLogInflightAdjustmentEventFloat(adjustmentFunction_e adjustmentFunction, float newFloatValue)
{ {
#ifndef BLACKBOX #ifndef USE_BLACKBOX
UNUSED(adjustmentFunction); UNUSED(adjustmentFunction);
UNUSED(newFloatValue); UNUSED(newFloatValue);
#else #else