Backlight restored in emergency mode, prevent complete turn off to avoid confusion
This commit is contained in:
@@ -276,7 +276,7 @@ void LCD_ControlLight(uint16_t dutyCycle);
|
||||
|
||||
// Backlight driver
|
||||
#define setBacklight(xx) LCD_ControlLight(xx)
|
||||
#define backlightEnable() setBacklight(100-g_eeGeneral.backlightBright)
|
||||
#define backlightEnable() setBacklight(UNEXPECTED_SHUTDOWN() ? 100 : 100-g_eeGeneral.backlightBright)
|
||||
#define backlightDisable() setBacklight(g_eeGeneral.blOffBright)
|
||||
#define isBacklightEnable() true
|
||||
|
||||
|
||||
@@ -322,7 +322,7 @@ void LCD_ControlLight(uint16_t dutyCycle)
|
||||
{
|
||||
static uint16_t existingDutyCycle;
|
||||
|
||||
if (dutyCycle == existingDutyCycle) {
|
||||
if (dutyCycle == existingDutyCycle || dutyCycle < 5) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user