summaryrefslogtreecommitdiff
path: root/firmware/backlight.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/backlight.c')
-rw-r--r--firmware/backlight.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index 9c153e885a..513f643171 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -35,6 +35,7 @@
35#include "timer.h" 35#include "timer.h"
36#include "backlight.h" 36#include "backlight.h"
37#include "lcd.h" 37#include "lcd.h"
38#include "screendump.h"
38 39
39#ifdef HAVE_REMOTE_LCD 40#ifdef HAVE_REMOTE_LCD
40#include "lcd-remote.h" 41#include "lcd-remote.h"
@@ -57,9 +58,6 @@ int backlight_brightness = DEFAULT_BRIGHTNESS_SETTING;
57#include "backlight-sw-fading.h" 58#include "backlight-sw-fading.h"
58#endif 59#endif
59#ifdef SIMULATOR 60#ifdef SIMULATOR
60/* TODO: find a better way to do it but we need a kernel thread somewhere to
61 handle this */
62extern void screen_dump(void);
63 61
64static inline void _backlight_on(void) 62static inline void _backlight_on(void)
65{ 63{
@@ -600,9 +598,13 @@ void backlight_thread(void)
600#endif /* HAVE_REMOTE_LCD/ HAVE_REMOTE_LCD_AS_MAIN */ 598#endif /* HAVE_REMOTE_LCD/ HAVE_REMOTE_LCD_AS_MAIN */
601#endif /* !SIMULATOR */ 599#endif /* !SIMULATOR */
602#ifdef SIMULATOR 600#ifdef SIMULATOR
603 /* This one here too for lack of a better place */ 601 /* TODO: find a better way to do it but we need
602 * a kernel thread somewhere to handle this */
604 case SYS_SCREENDUMP: 603 case SYS_SCREENDUMP:
605 screen_dump(); 604 screen_dump();
605#ifdef HAVE_REMOTE_LCD
606 remote_screen_dump();
607#endif
606 break; 608 break;
607#endif 609#endif
608 case SYS_USB_CONNECTED: 610 case SYS_USB_CONNECTED: