Backlight restored in emergency mode, prevent complete turn off to avoid confusion

This commit is contained in:
Andre Bernet
2016-04-08 09:22:04 +04:00
parent 18f56075a5
commit f534702d59
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -322,7 +322,7 @@ void LCD_ControlLight(uint16_t dutyCycle)
{
static uint16_t existingDutyCycle;
if (dutyCycle == existingDutyCycle) {
if (dutyCycle == existingDutyCycle || dutyCycle < 5) {
return;
}
else {