summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/gui/gwps-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index dba703c..19d087d 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -1138,12 +1138,12 @@ static char *get_token_value(struct gui_wps *gwps,
case WPS_TOKEN_REPEAT_MODE:
if (intval)
*intval = global_settings.repeat_mode + 1;
- snprintf(buf, buf_size, "%d", *intval);
+ snprintf(buf, buf_size, "%d", global_settings.repeat_mode + 1);
return buf;
case WPS_TOKEN_RTC_12HOUR_CFG:
if (intval)
*intval = global_settings.timeformat + 1;
- snprintf(buf, buf_size, "%d", *intval);
+ snprintf(buf, buf_size, "%d", global_settings.timeformat + 1);
return buf;
#if CONFIG_RTC
case WPS_TOKEN_RTC_DAY_OF_MONTH: