mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 00:35:18 +03:00
BACKLIGHT=OFF will take effect immediately
This commit is contained in:
parent
ab2c5870e9
commit
00b70da66a
1 changed files with 1 additions and 3 deletions
|
@ -710,7 +710,6 @@ void checkBacklight()
|
||||||
{
|
{
|
||||||
static uint8_t tmr10ms ;
|
static uint8_t tmr10ms ;
|
||||||
|
|
||||||
|
|
||||||
uint8_t x = g_blinkTmr10ms;
|
uint8_t x = g_blinkTmr10ms;
|
||||||
if (tmr10ms != x) {
|
if (tmr10ms != x) {
|
||||||
tmr10ms = x;
|
tmr10ms = x;
|
||||||
|
@ -721,13 +720,12 @@ void checkBacklight()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool backlightOn = (g_eeGeneral.backlightMode == e_backlight_mode_on || lightOffCounter || isFunctionActive(FUNCTION_BACKLIGHT));
|
bool backlightOn = (g_eeGeneral.backlightMode == e_backlight_mode_on || (g_eeGeneral.backlightMode != e_backlight_mode_off && lightOffCounter) || isFunctionActive(FUNCTION_BACKLIGHT));
|
||||||
if (flashCounter) backlightOn = !backlightOn;
|
if (flashCounter) backlightOn = !backlightOn;
|
||||||
if (backlightOn)
|
if (backlightOn)
|
||||||
BACKLIGHT_ENABLE();
|
BACKLIGHT_ENABLE();
|
||||||
else
|
else
|
||||||
BACKLIGHT_DISABLE();
|
BACKLIGHT_DISABLE();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue