diff options
-rw-r--r-- | apps/screens.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/screens.c b/apps/screens.c index 5b41cbf9f2..f811547e21 100644 --- a/apps/screens.c +++ b/apps/screens.c | |||
@@ -519,9 +519,10 @@ void splash(char *text, /* what to say */ | |||
519 | lcd_update(); | 519 | lcd_update(); |
520 | 520 | ||
521 | if(ticks) { | 521 | if(ticks) { |
522 | int start = current_tick; | ||
522 | int done = ticks + current_tick + 1; | 523 | int done = ticks + current_tick + 1; |
523 | while (TIME_BEFORE( current_tick, done)) { | 524 | while (TIME_BEFORE( current_tick, done)) { |
524 | int button = button_get_w_tmo(ticks); | 525 | int button = button_get_w_tmo(ticks - (current_tick-start)); |
525 | if((button & keymask) == keymask) | 526 | if((button & keymask) == keymask) |
526 | break; | 527 | break; |
527 | } | 528 | } |