mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Cleaned up some leftovers of the transition to 'USE_'.
This commit is contained in:
parent
228aec6253
commit
5f64bcfa09
1 changed files with 3 additions and 3 deletions
|
@ -42,7 +42,7 @@
|
||||||
#include "io/beeper.h"
|
#include "io/beeper.h"
|
||||||
#include "io/motors.h"
|
#include "io/motors.h"
|
||||||
|
|
||||||
#if defined(OSD) && defined(USE_OSD_ADJUSTMENTS)
|
#if defined(USE_OSD) && defined(USE_OSD_ADJUSTMENTS)
|
||||||
#include "io/osd.h"
|
#include "io/osd.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -206,7 +206,7 @@ static const adjustmentConfig_t defaultAdjustmentConfigs[ADJUSTMENT_FUNCTION_COU
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(OSD) && defined(USE_OSD_ADJUSTMENTS)
|
#if defined(USE_OSD) && defined(USE_OSD_ADJUSTMENTS)
|
||||||
static const char * adjustmentLabels[] = {
|
static const char * adjustmentLabels[] = {
|
||||||
"RC RATE",
|
"RC RATE",
|
||||||
"RC EXPO",
|
"RC EXPO",
|
||||||
|
@ -466,7 +466,7 @@ void processRcAdjustments(controlRateConfig_t *controlRateConfig)
|
||||||
newValue = applySelectAdjustment(adjustmentFunction, position);
|
newValue = applySelectAdjustment(adjustmentFunction, position);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(OSD) && defined(USE_OSD_ADJUSTMENTS)
|
#if defined(USE_OSD) && defined(USE_OSD_ADJUSTMENTS)
|
||||||
if (newValue != -1) {
|
if (newValue != -1) {
|
||||||
osdShowAdjustment(adjustmentLabels[adjustmentFunction], newValue);
|
osdShowAdjustment(adjustmentLabels[adjustmentFunction], newValue);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue