diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/wps.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c index d2c1361a44..cc6bd60ef5 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c | |||
@@ -745,7 +745,10 @@ long gui_wps_show(void) | |||
745 | button = BUTTON_NONE; | 745 | button = BUTTON_NONE; |
746 | while (TIME_BEFORE(current_tick, next_big_refresh)) { | 746 | while (TIME_BEFORE(current_tick, next_big_refresh)) { |
747 | button = get_action(CONTEXT_WPS|ALLOW_SOFTLOCK,TIMEOUT_NOBLOCK); | 747 | button = get_action(CONTEXT_WPS|ALLOW_SOFTLOCK,TIMEOUT_NOBLOCK); |
748 | if (button != ACTION_NONE) { | 748 | /* check for restore to not let the peakmeter delay the |
749 | * initial draw of the wps, don't delay handling of button | ||
750 | * presses either */ | ||
751 | if (button != ACTION_NONE || restore) { | ||
749 | break; | 752 | break; |
750 | } | 753 | } |
751 | peak_meter_peek(); | 754 | peak_meter_peek(); |
@@ -769,7 +772,7 @@ long gui_wps_show(void) | |||
769 | #endif | 772 | #endif |
770 | { | 773 | { |
771 | button = get_action(CONTEXT_WPS|ALLOW_SOFTLOCK, | 774 | button = get_action(CONTEXT_WPS|ALLOW_SOFTLOCK, |
772 | restore ? HZ/100 : HZ/5); | 775 | restore ? TIMEOUT_NOBLOCK : HZ/5); |
773 | } | 776 | } |
774 | 777 | ||
775 | /* Exit if audio has stopped playing. This happens e.g. at end of | 778 | /* Exit if audio has stopped playing. This happens e.g. at end of |