diff options
author | Nils Wallménius <nils@rockbox.org> | 2009-01-03 12:48:06 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2009-01-03 12:48:06 +0000 |
commit | 3681ff197d3cf5393df3d56d7b6f7b39af0fc47f (patch) | |
tree | 057abedb9b45425c53e27739b3c228a6148ab456 /apps/gui/gwps-common.c | |
parent | d14f79dc7b4888b345ec2b71c36ca432d23c5711 (diff) | |
download | rockbox-3681ff197d3cf5393df3d56d7b6f7b39af0fc47f.tar.gz rockbox-3681ff197d3cf5393df3d56d7b6f7b39af0fc47f.zip |
Reorder of user_settings, cleaned out some unused settings grouped settings depending on the same preprocessor defines together a bit more to make it more readable, updated some comments. Plugin api bump and the wps token for 12/24 hour clock setting is now excluded for non rtc targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19655 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r-- | apps/gui/gwps-common.c | 3 |
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); |