summaryrefslogtreecommitdiff
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 5e134b5fa3..2b1d6417e2 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -1147,12 +1147,13 @@ static const char *get_token_value(struct gui_wps *gwps,
1147 *intval = global_settings.repeat_mode + 1; 1147 *intval = global_settings.repeat_mode + 1;
1148 snprintf(buf, buf_size, "%d", global_settings.repeat_mode); 1148 snprintf(buf, buf_size, "%d", global_settings.repeat_mode);
1149 return buf; 1149 return buf;
1150#if CONFIG_RTC
1150 case WPS_TOKEN_RTC_12HOUR_CFG: 1151 case WPS_TOKEN_RTC_12HOUR_CFG:
1151 if (intval) 1152 if (intval)
1152 *intval = global_settings.timeformat + 1; 1153 *intval = global_settings.timeformat + 1;
1153 snprintf(buf, buf_size, "%d", global_settings.timeformat); 1154 snprintf(buf, buf_size, "%d", global_settings.timeformat);
1154 return buf; 1155 return buf;
1155#if CONFIG_RTC 1156
1156 case WPS_TOKEN_RTC_DAY_OF_MONTH: 1157 case WPS_TOKEN_RTC_DAY_OF_MONTH:
1157 /* d: day of month (01..31) */ 1158 /* d: day of month (01..31) */
1158 snprintf(buf, buf_size, "%02d", tm->tm_mday); 1159 snprintf(buf, buf_size, "%02d", tm->tm_mday);