summaryrefslogtreecommitdiff
path: root/apps/gui/wps_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/wps_parser.c')
-rw-r--r--apps/gui/wps_parser.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/gui/wps_parser.c b/apps/gui/wps_parser.c
index 96e8d6664c..fc207efb9b 100644
--- a/apps/gui/wps_parser.c
+++ b/apps/gui/wps_parser.c
@@ -802,6 +802,18 @@ static int parse_timeout(const char *wps_bufptr,
802 if (have_tenth == false) 802 if (have_tenth == false)
803 val *= 10; 803 val *= 10;
804 804
805 if (val == 0 && skip == 0)
806 {
807 /* decide what to do if no value was specified */
808 switch (token->type)
809 {
810 case WPS_TOKEN_SUBLINE_TIMEOUT:
811 return -1;
812 case WPS_TOKEN_BUTTON_VOLUME:
813 val = HZ;
814 break;
815 }
816 }
805 token->value.i = val; 817 token->value.i = val;
806 818
807 return skip; 819 return skip;