summaryrefslogtreecommitdiff
path: root/apps/gui/gwps-common.c
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2008-09-04 22:08:03 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2008-09-04 22:08:03 +0000
commite0646947c9d36d5095659939f73294c2b425fda8 (patch)
tree60f243521a89ec944b3f8cafe8a0b4d3a93eab78 /apps/gui/gwps-common.c
parent939459e10ec227b42c4b9dcd61b1ab55aee2c29c (diff)
downloadrockbox-e0646947c9d36d5095659939f73294c2b425fda8.tar.gz
rockbox-e0646947c9d36d5095659939f73294c2b425fda8.zip
Make %mm 0-based again (as described in CustomWPS), and change %cf accordingly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18421 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps-common.c')
-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 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: