diff options
Diffstat (limited to 'apps/menu.c')
-rw-r--r-- | apps/menu.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/apps/menu.c b/apps/menu.c index 1940c379bc..44510ebfc9 100644 --- a/apps/menu.c +++ b/apps/menu.c | |||
@@ -245,11 +245,6 @@ void menu_exit(int m) | |||
245 | 245 | ||
246 | Menu menu_run(int m) | 246 | Menu menu_run(int m) |
247 | { | 247 | { |
248 | #ifndef SIMULATOR | ||
249 | #ifdef HAVE_LCD_BITMAP | ||
250 | bool laststate; | ||
251 | #endif | ||
252 | #endif | ||
253 | Menu result = MENU_OK; | 248 | Menu result = MENU_OK; |
254 | 249 | ||
255 | menu_draw(m); | 250 | menu_draw(m); |
@@ -330,16 +325,11 @@ Menu menu_run(int m) | |||
330 | 325 | ||
331 | #ifndef SIMULATOR | 326 | #ifndef SIMULATOR |
332 | case SYS_USB_CONNECTED: | 327 | case SYS_USB_CONNECTED: |
333 | #ifdef HAVE_LCD_BITMAP | ||
334 | laststate = statusbar(false); | ||
335 | #endif | ||
336 | backlight_time(4); | 328 | backlight_time(4); |
337 | usb_acknowledge(SYS_USB_CONNECTED_ACK); | 329 | usb_acknowledge(SYS_USB_CONNECTED_ACK); |
338 | usb_wait_for_disconnect(&button_queue); | 330 | usb_wait_for_disconnect(&button_queue); |
339 | backlight_time(global_settings.backlight); | 331 | backlight_time(global_settings.backlight); |
340 | #ifdef HAVE_LCD_BITMAP | 332 | #ifdef HAVE_LCD_CHARCELLS |
341 | statusbar(laststate); | ||
342 | #else | ||
343 | lcd_icon(ICON_PARAM, true); | 333 | lcd_icon(ICON_PARAM, true); |
344 | #endif | 334 | #endif |
345 | menu_draw(m); | 335 | menu_draw(m); |