diff options
-rw-r--r-- | firmware/backlight.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c index 8eded957f7..27bc8a453f 100644 --- a/firmware/backlight.c +++ b/firmware/backlight.c | |||
@@ -481,10 +481,11 @@ static void backlight_update_state(void) | |||
481 | if (UNLIKELY(timeout < 0)) | 481 | if (UNLIKELY(timeout < 0)) |
482 | { | 482 | { |
483 | do_backlight_off(); | 483 | do_backlight_off(); |
484 | #if (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_SETTING) \ | 484 | #if (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_SETTING) \ |
485 | || (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_HW_REG) | 485 | || (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_HW_REG) |
486 | /* necessary step to issue fading down when the setting is selected */ | 486 | /* necessary step to issue fading down when the setting is selected */ |
487 | queue_post(&backlight_queue, SYS_TIMEOUT, 0); | 487 | if (queue_empty(&backlight_queue)) |
488 | queue_post(&backlight_queue, SYS_TIMEOUT, 0); | ||
488 | #endif | 489 | #endif |
489 | } | 490 | } |
490 | else | 491 | else |