diff options
Diffstat (limited to 'firmware/backlight.c')
-rw-r--r-- | firmware/backlight.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c index caff55ce5e..e8a71af12c 100644 --- a/firmware/backlight.c +++ b/firmware/backlight.c | |||
@@ -209,15 +209,18 @@ static void backlight_lcd_sleep_countdown(bool start) | |||
209 | } | 209 | } |
210 | 210 | ||
211 | /* Start LCD sleep countdown */ | 211 | /* Start LCD sleep countdown */ |
212 | if (lcd_sleep_timeout < 0) | 212 | if (lcd_sleep_timeout <= 0) |
213 | { | 213 | { |
214 | lcd_sleep_timer = 0; /* Setting == Always */ | 214 | lcd_sleep_timer = 0; |
215 | /* Ensure lcd_sleep() is called from backlight_thread() */ | 215 | if (lcd_sleep_timeout == 0) /* Setting == Always */ |
216 | { | ||
217 | /* Ensure lcd_sleep() is called from backlight_thread() */ | ||
216 | #if (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_PWM) | 218 | #if (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_PWM) |
217 | queue_post(&backlight_queue, LCD_SLEEP, 0); | 219 | queue_post(&backlight_queue, LCD_SLEEP, 0); |
218 | #else | 220 | #else |
219 | lcd_sleep(); | 221 | lcd_sleep(); |
220 | #endif | 222 | #endif |
223 | } | ||
221 | } | 224 | } |
222 | else | 225 | else |
223 | { | 226 | { |