summaryrefslogtreecommitdiff
path: root/bootloader
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/x1000/gui.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/bootloader/x1000/gui.c b/bootloader/x1000/gui.c
index 1208d3c161..a15f315a44 100644
--- a/bootloader/x1000/gui.c
+++ b/bootloader/x1000/gui.c
@@ -116,7 +116,15 @@ void splashf(long delay, const char* msg, ...)
116 } while(str); 116 } while(str);
117 117
118 lcd_update(); 118 lcd_update();
119 sleep(delay); 119
120 if(delay == TIMEOUT_BLOCK) {
121 while(get_button(TIMEOUT_BLOCK) != BL_QUIT);
122 } else if(delay > 0) {
123 long end_tick = current_tick + delay;
124 do {
125 get_button(end_tick - current_tick);
126 } while(current_tick < end_tick);
127 }
120} 128}
121 129
122int get_button(int timeout) 130int get_button(int timeout)