diff options
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/gwps-common.c | 8 | ||||
-rw-r--r-- | apps/gui/gwps.h | 2 | ||||
-rw-r--r-- | apps/gui/wps_parser.c | 1 |
3 files changed, 11 insertions, 0 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index 1fef9e02cb..9a69c74bf3 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c | |||
@@ -1037,6 +1037,14 @@ static const char *get_token_value(struct gui_wps *gwps, | |||
1037 | *intval = global_settings.repeat_mode + 1; | 1037 | *intval = global_settings.repeat_mode + 1; |
1038 | snprintf(buf, buf_size, "%d", global_settings.repeat_mode); | 1038 | snprintf(buf, buf_size, "%d", global_settings.repeat_mode); |
1039 | return buf; | 1039 | return buf; |
1040 | |||
1041 | case WPS_TOKEN_RTC_PRESENT: | ||
1042 | #if CONFIG_RTC | ||
1043 | return "c"; | ||
1044 | #else | ||
1045 | return NULL; | ||
1046 | #endif | ||
1047 | |||
1040 | #if CONFIG_RTC | 1048 | #if CONFIG_RTC |
1041 | case WPS_TOKEN_RTC_12HOUR_CFG: | 1049 | case WPS_TOKEN_RTC_12HOUR_CFG: |
1042 | if (intval) | 1050 | if (intval) |
diff --git a/apps/gui/gwps.h b/apps/gui/gwps.h index 935e015c93..f3562214a0 100644 --- a/apps/gui/gwps.h +++ b/apps/gui/gwps.h | |||
@@ -173,6 +173,8 @@ enum wps_token_type { | |||
173 | 173 | ||
174 | /* Time */ | 174 | /* Time */ |
175 | 175 | ||
176 | WPS_TOKEN_RTC_PRESENT, | ||
177 | |||
176 | /* The begin/end values allow us to know if a token is an RTC one. | 178 | /* The begin/end values allow us to know if a token is an RTC one. |
177 | New RTC tokens should be added between the markers. */ | 179 | New RTC tokens should be added between the markers. */ |
178 | 180 | ||
diff --git a/apps/gui/wps_parser.c b/apps/gui/wps_parser.c index 70e13e78a7..7211e6c86a 100644 --- a/apps/gui/wps_parser.c +++ b/apps/gui/wps_parser.c | |||
@@ -193,6 +193,7 @@ static const struct wps_tag all_tags[] = { | |||
193 | { WPS_TOKEN_BATTERY_CHARGER_CONNECTED,"bp", WPS_REFRESH_DYNAMIC, NULL }, | 193 | { WPS_TOKEN_BATTERY_CHARGER_CONNECTED,"bp", WPS_REFRESH_DYNAMIC, NULL }, |
194 | #endif | 194 | #endif |
195 | 195 | ||
196 | { WPS_TOKEN_RTC_PRESENT , "cc", WPS_REFRESH_STATIC, NULL }, | ||
196 | { WPS_TOKEN_RTC_DAY_OF_MONTH, "cd", WPS_RTC_REFRESH, NULL }, | 197 | { WPS_TOKEN_RTC_DAY_OF_MONTH, "cd", WPS_RTC_REFRESH, NULL }, |
197 | { WPS_TOKEN_RTC_DAY_OF_MONTH_BLANK_PADDED,"ce", WPS_RTC_REFRESH, NULL }, | 198 | { WPS_TOKEN_RTC_DAY_OF_MONTH_BLANK_PADDED,"ce", WPS_RTC_REFRESH, NULL }, |
198 | { WPS_TOKEN_RTC_12HOUR_CFG, "cf", WPS_RTC_REFRESH, NULL }, | 199 | { WPS_TOKEN_RTC_12HOUR_CFG, "cf", WPS_RTC_REFRESH, NULL }, |