diff options
-rw-r--r-- | apps/gui/gwps-common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index 19d087d77a..4c790b3948 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, | |||
1138 | case WPS_TOKEN_REPEAT_MODE: | 1138 | case WPS_TOKEN_REPEAT_MODE: |
1139 | if (intval) | 1139 | if (intval) |
1140 | *intval = global_settings.repeat_mode + 1; | 1140 | *intval = global_settings.repeat_mode + 1; |
1141 | snprintf(buf, buf_size, "%d", global_settings.repeat_mode + 1); | 1141 | snprintf(buf, buf_size, "%d", global_settings.repeat_mode); |
1142 | return buf; | 1142 | return buf; |
1143 | case WPS_TOKEN_RTC_12HOUR_CFG: | 1143 | case WPS_TOKEN_RTC_12HOUR_CFG: |
1144 | if (intval) | 1144 | if (intval) |
1145 | *intval = global_settings.timeformat + 1; | 1145 | *intval = global_settings.timeformat + 1; |
1146 | snprintf(buf, buf_size, "%d", global_settings.timeformat + 1); | 1146 | snprintf(buf, buf_size, "%d", global_settings.timeformat); |
1147 | return buf; | 1147 | return buf; |
1148 | #if CONFIG_RTC | 1148 | #if CONFIG_RTC |
1149 | case WPS_TOKEN_RTC_DAY_OF_MONTH: | 1149 | case WPS_TOKEN_RTC_DAY_OF_MONTH: |