1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Fixed problem with feature save via OSD, and better LED strip color display in menu

This commit is contained in:
Marcin Baliniak 2016-09-25 11:49:08 +02:00
parent 171b03bfb7
commit 2d83570923

View file

@ -307,19 +307,19 @@ OSD_Entry menuBlackbox[] =
uint8_t ledColor; uint8_t ledColor;
static const char * const LED_COLOR_NAMES[] = { static const char * const LED_COLOR_NAMES[] = {
" BLACK", " BLACK ",
" WHITE", " WHITE ",
" RED", " RED ",
" ORANGE", " ORANGE ",
" YELLOW", " YELLOW ",
" LIME GREEN", " LIME GREEN",
" GREEN", " GREEN ",
" MINT GREEN", " MINT GREEN",
" CYAN", " CYAN ",
" LIGHT BLUE", " LIGHT BLUE",
" BLUE", " BLUE ",
"DARK VIOLET", "DARK VIOLET",
" MAGENTA", " MAGENTA ",
" DEEP PINK" " DEEP PINK"
}; };
@ -1353,13 +1353,18 @@ void osdExitMenu(void *ptr)
// save local variables to configuration // save local variables to configuration
if (featureBlackbox) if (featureBlackbox)
featureSet(FEATURE_BLACKBOX); featureSet(FEATURE_BLACKBOX);
else
featureClear(FEATURE_BLACKBOX);
if (featureLedstrip) if (featureLedstrip)
featureSet(FEATURE_LED_STRIP); featureSet(FEATURE_LED_STRIP);
else
featureClear(FEATURE_LED_STRIP);
#if defined(VTX) || defined(USE_RTC6705) #if defined(VTX) || defined(USE_RTC6705)
if (featureVtx) if (featureVtx)
featureSet(FEATURE_VTX); featureSet(FEATURE_VTX);
else
featureClear(FEATURE_VTX);
#endif // VTX || USE_RTC6705 #endif // VTX || USE_RTC6705
#ifdef VTX #ifdef VTX