diff options
| author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-04-10 13:37:08 +0000 |
|---|---|---|
| committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-04-10 13:37:08 +0000 |
| commit | 536c5d9e744afe894aa221bb5ce23e175a3f54e5 (patch) | |
| tree | 76ae73120d14aca8fcf250ae27816a42c61091a9 /apps/gui/wps_debug.c | |
| parent | af7780e0b3f27a574b007be6ac7a273d14f6b76a (diff) | |
| download | rockbox-536c5d9e744afe894aa221bb5ce23e175a3f54e5.zip rockbox-536c5d9e744afe894aa221bb5ce23e175a3f54e5.tar.gz rockbox-536c5d9e744afe894aa221bb5ce23e175a3f54e5.tar.bz2 rockbox-536c5d9e744afe894aa221bb5ce23e175a3f54e5.tar.xz | |
RTC tags for the WPS: Accept FS#6998 and FS#7001 by Alexander Levin with changes by me. CUSTOM WPS FILES NEED TO BE UPDATED !
The RTC tags are now atomic, i.e. instead of using one tag with the format (e.g. %cd m yc), we use several separate tags, one for each value (e.g. %cd %cm %cy).
Also, %cP produces an uppercase AM/PM indicator and %cp a lowercase one, which is the opposite from what they did before.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13093 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/wps_debug.c')
| -rw-r--r-- | apps/gui/wps_debug.c | 40 |
1 files changed, 33 insertions, 7 deletions
diff --git a/apps/gui/wps_debug.c b/apps/gui/wps_debug.c index 0e2b151..4a8153d 100644 --- a/apps/gui/wps_debug.c +++ b/apps/gui/wps_debug.c @@ -135,30 +135,56 @@ void dump_wps_tokens(struct wps_data *data) break; #if CONFIG_RTC - case WPS_TOKEN_RTC: - snprintf(buf, sizeof(buf), "real-time clock", - token->value.c); - break; - case WPS_TOKEN_RTC_DAY_OF_MONTH: + snprintf(buf, sizeof(buf), "rtc: day of month (01..31)"); + break; case WPS_TOKEN_RTC_DAY_OF_MONTH_BLANK_PADDED: + snprintf(buf, sizeof(buf), "rtc: day of month, blank padded ( 1..31)"); + break; case WPS_TOKEN_RTC_HOUR_24_ZERO_PADDED: + snprintf(buf, sizeof(buf), "rtc: hour (00..23)"); + break; case WPS_TOKEN_RTC_HOUR_24: + snprintf(buf, sizeof(buf), "rtc: hour ( 0..23)"); + break; case WPS_TOKEN_RTC_HOUR_12_ZERO_PADDED: + snprintf(buf, sizeof(buf), "rtc: hour (01..12)"); + break; case WPS_TOKEN_RTC_HOUR_12: + snprintf(buf, sizeof(buf), "rtc: hour ( 1..12)"); + break; case WPS_TOKEN_RTC_MONTH: + snprintf(buf, sizeof(buf), "rtc: month (01..12)"); + break; case WPS_TOKEN_RTC_MINUTE: + snprintf(buf, sizeof(buf), "rtc: minute (00..59)"); + break; case WPS_TOKEN_RTC_SECOND: + snprintf(buf, sizeof(buf), "rtc: second (00..59)"); + break; case WPS_TOKEN_RTC_YEAR_2_DIGITS: + snprintf(buf, sizeof(buf), "rtc: last two digits of year (00..99)"); + break; case WPS_TOKEN_RTC_YEAR_4_DIGITS: + snprintf(buf, sizeof(buf), "rtc: year (1970...)"); + break; case WPS_TOKEN_RTC_AM_PM_UPPER: + snprintf(buf, sizeof(buf), "rtc: upper case AM or PM indicator"); + break; case WPS_TOKEN_RTC_AM_PM_LOWER: + snprintf(buf, sizeof(buf), "rtc: lower case am or pm indicator"); + break; case WPS_TOKEN_RTC_WEEKDAY_NAME: + snprintf(buf, sizeof(buf), "rtc: abbreviated weekday name (Sun..Sat)"); + break; case WPS_TOKEN_RTC_MONTH_NAME: + snprintf(buf, sizeof(buf), "rtc: abbreviated month name (Jan..Dec)"); + break; case WPS_TOKEN_RTC_DAY_OF_WEEK_START_MON: + snprintf(buf, sizeof(buf), "rtc: day of week (1..7); 1 is Monday"); + break; case WPS_TOKEN_RTC_DAY_OF_WEEK_START_SUN: - snprintf(buf, sizeof(buf), "real-time clock tag: %c", - token->value.c); + snprintf(buf, sizeof(buf), "rtc: day of week (0..6); 0 is Sunday"); break; #endif |