summaryrefslogtreecommitdiff
path: root/bootloader/x1000/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/x1000/gui.c')
-rw-r--r--bootloader/x1000/gui.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/bootloader/x1000/gui.c b/bootloader/x1000/gui.c
index 513a3cb9cb..1208d3c161 100644
--- a/bootloader/x1000/gui.c
+++ b/bootloader/x1000/gui.c
@@ -122,10 +122,17 @@ void splashf(long delay, const char* msg, ...)
122int get_button(int timeout) 122int get_button(int timeout)
123{ 123{
124 int btn = button_get_w_tmo(timeout); 124 int btn = button_get_w_tmo(timeout);
125 if(btn == SYS_USB_CONNECTED) 125 switch(btn) {
126 is_usb_connected = true; 126 case SYS_USB_CONNECTED:
127 else if(btn == SYS_USB_DISCONNECTED) 127 case SYS_USB_DISCONNECTED:
128 is_usb_connected = false; 128 is_usb_connected = (btn == SYS_USB_CONNECTED);
129 break;
130#ifdef HAVE_SCREENDUMP
131 case BL_SCREENSHOT:
132 screenshot();
133 break;
134#endif
135 }
129 136
130 return btn; 137 return btn;
131} 138}