summaryrefslogtreecommitdiff
path: root/flash/bootbox/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'flash/bootbox/main.c')
-rw-r--r--flash/bootbox/main.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/flash/bootbox/main.c b/flash/bootbox/main.c
index 9536d531f4..698a7e0954 100644
--- a/flash/bootbox/main.c
+++ b/flash/bootbox/main.c
@@ -46,9 +46,8 @@ void usb_screen(void)
46{ 46{
47 lcd_clear_display(); 47 lcd_clear_display();
48 lcd_puts(0, 0, "USB mode"); 48 lcd_puts(0, 0, "USB mode");
49#ifdef HAVE_LCD_BITMAP
50 lcd_update(); 49 lcd_update();
51#endif 50
52 usb_acknowledge(SYS_USB_CONNECTED_ACK); 51 usb_acknowledge(SYS_USB_CONNECTED_ACK);
53 while(usb_wait_for_disconnect_w_tmo(&button_queue, HZ)) { 52 while(usb_wait_for_disconnect_w_tmo(&button_queue, HZ)) {
54 } 53 }
@@ -59,9 +58,8 @@ int show_logo(void)
59 lcd_clear_display(); 58 lcd_clear_display();
60 lcd_puts(0, 0, "Rockbox"); 59 lcd_puts(0, 0, "Rockbox");
61 lcd_puts(0, 1, "Rescue boot"); 60 lcd_puts(0, 1, "Rescue boot");
62#ifdef HAVE_LCD_BITMAP
63 lcd_update(); 61 lcd_update();
64#endif 62
65 return 0; 63 return 0;
66} 64}
67 65
@@ -104,10 +102,7 @@ void charging_screen(void)
104 battv / 100, battv % 100, battery_level()); 102 battv / 100, battv % 100, battery_level());
105 lcd_puts(0, 1, buf); 103 lcd_puts(0, 1, buf);
106 } 104 }
107
108#ifdef HAVE_LCD_BITMAP
109 lcd_update(); 105 lcd_update();
110#endif
111 106
112 button = button_get_w_tmo(HZ/2); 107 button = button_get_w_tmo(HZ/2);
113#ifdef BUTTON_ON 108#ifdef BUTTON_ON
@@ -137,8 +132,8 @@ void prompt_usb(const char* msg1, const char* msg2)
137#ifdef HAVE_LCD_BITMAP 132#ifdef HAVE_LCD_BITMAP
138 lcd_puts(0, 2, "Insert USB cable"); 133 lcd_puts(0, 2, "Insert USB cable");
139 lcd_puts(0, 3, "and fix it."); 134 lcd_puts(0, 3, "and fix it.");
140 lcd_update();
141#endif 135#endif
136 lcd_update();
142 do 137 do
143 { 138 {
144 button = button_get(true); 139 button = button_get(true);