summaryrefslogtreecommitdiffstats
path: root/apps/gui/gwps-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r--apps/gui/gwps-common.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 18c7098511..806ce19d71 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -1389,8 +1389,11 @@ static const char *get_token_value(struct gui_wps *gwps,
return NULL;
#endif
case WPS_TOKEN_BUTTON_VOLUME:
+ if (token->value.i == 0)
+ token->value.i = HZ;
if (data->button_time_volume &&
- TIME_BEFORE(current_tick, data->button_time_volume+HZ))
+ TIME_BEFORE(current_tick, data->button_time_volume +
+ token->value.i))
return "v";
return NULL;
default: