summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/backlight.c4
-rw-r--r--firmware/export/backlight.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index 3acc89c27c..caff55ce5e 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -499,6 +499,10 @@ static void backlight_update_state(void)
499 if (UNLIKELY(timeout < 0)) 499 if (UNLIKELY(timeout < 0))
500 { 500 {
501 do_backlight_off(); 501 do_backlight_off();
502#if defined(HAVE_TRANSFLECTIVE_LCD) && defined(HAVE_LCD_SLEEP)
503 /* LCD must be enabled to allow "passive" operation (backlight always off) */
504 lcd_awake();
505#endif
502#if (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_SETTING) \ 506#if (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_SETTING) \
503 || (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_HW_REG) 507 || (CONFIG_BACKLIGHT_FADING == BACKLIGHT_FADING_SW_HW_REG)
504 /* necessary step to issue fading down when the setting is selected */ 508 /* necessary step to issue fading down when the setting is selected */
diff --git a/firmware/export/backlight.h b/firmware/export/backlight.h
index 6d029790b3..326de4ce28 100644
--- a/firmware/export/backlight.h
+++ b/firmware/export/backlight.h
@@ -64,6 +64,10 @@ void lcd_set_sleep_after_backlight_off(int timeout_seconds);
64void lcd_awake(void); 64void lcd_awake(void);
65#endif 65#endif
66 66
67#ifdef HAVE_LCD_SLEEP
68void lcd_awake(void);
69#endif
70
67#else /* !HAVE_BACKLIGHT */ 71#else /* !HAVE_BACKLIGHT */
68#define backlight_init() 72#define backlight_init()
69#endif /* !HAVE_BACKLIGHT */ 73#endif /* !HAVE_BACKLIGHT */