summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/backlight.c10
-rw-r--r--firmware/export/kernel.h7
2 files changed, 3 insertions, 14 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index 513f643171..588867f1a5 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -597,16 +597,6 @@ void backlight_thread(void)
597 break; 597 break;
598#endif /* HAVE_REMOTE_LCD/ HAVE_REMOTE_LCD_AS_MAIN */ 598#endif /* HAVE_REMOTE_LCD/ HAVE_REMOTE_LCD_AS_MAIN */
599#endif /* !SIMULATOR */ 599#endif /* !SIMULATOR */
600#ifdef SIMULATOR
601 /* TODO: find a better way to do it but we need
602 * a kernel thread somewhere to handle this */
603 case SYS_SCREENDUMP:
604 screen_dump();
605#ifdef HAVE_REMOTE_LCD
606 remote_screen_dump();
607#endif
608 break;
609#endif
610 case SYS_USB_CONNECTED: 600 case SYS_USB_CONNECTED:
611 /* Tell the USB thread that we are safe */ 601 /* Tell the USB thread that we are safe */
612 DEBUGF("backlight_thread got SYS_USB_CONNECTED\n"); 602 DEBUGF("backlight_thread got SYS_USB_CONNECTED\n");
diff --git a/firmware/export/kernel.h b/firmware/export/kernel.h
index 90a21630ed..63cc174cb6 100644
--- a/firmware/export/kernel.h
+++ b/firmware/export/kernel.h
@@ -76,10 +76,9 @@
76#define SYS_PHONE_UNPLUGGED MAKE_SYS_EVENT(SYS_EVENT_CLS_PLUG, 3) 76#define SYS_PHONE_UNPLUGGED MAKE_SYS_EVENT(SYS_EVENT_CLS_PLUG, 3)
77#define SYS_REMOTE_PLUGGED MAKE_SYS_EVENT(SYS_EVENT_CLS_PLUG, 4) 77#define SYS_REMOTE_PLUGGED MAKE_SYS_EVENT(SYS_EVENT_CLS_PLUG, 4)
78#define SYS_REMOTE_UNPLUGGED MAKE_SYS_EVENT(SYS_EVENT_CLS_PLUG, 5) 78#define SYS_REMOTE_UNPLUGGED MAKE_SYS_EVENT(SYS_EVENT_CLS_PLUG, 5)
79#define SYS_SCREENDUMP MAKE_SYS_EVENT(SYS_EVENT_CLS_MISC, 0) 79#define SYS_CAR_ADAPTER_RESUME MAKE_SYS_EVENT(SYS_EVENT_CLS_MISC, 0)
80#define SYS_CAR_ADAPTER_RESUME MAKE_SYS_EVENT(SYS_EVENT_CLS_MISC, 1) 80#define SYS_IAP_PERIODIC MAKE_SYS_EVENT(SYS_EVENT_CLS_MISC, 1)
81#define SYS_IAP_PERIODIC MAKE_SYS_EVENT(SYS_EVENT_CLS_MISC, 2) 81#define SYS_IAP_HANDLEPKT MAKE_SYS_EVENT(SYS_EVENT_CLS_MISC, 2)
82#define SYS_IAP_HANDLEPKT MAKE_SYS_EVENT(SYS_EVENT_CLS_MISC, 3)
83 82
84#define IS_SYSEVENT(ev) ((ev & SYS_EVENT) == SYS_EVENT) 83#define IS_SYSEVENT(ev) ((ev & SYS_EVENT) == SYS_EVENT)
85 84