summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2007-04-07 11:57:59 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2007-04-07 11:57:59 +0000
commit3dc42ba8c70bb7602da76c4330e326912292dbe1 (patch)
tree0c14eb4bd3d192dc0c3e8fe2e1a916c478560a5b
parent0b5998c7ea18af0dfefab188a029b7fdca5c7056 (diff)
downloadrockbox-3dc42ba8c70bb7602da76c4330e326912292dbe1.tar.gz
rockbox-3dc42ba8c70bb7602da76c4330e326912292dbe1.zip
Add the sleep timer tag that got forgotten in the initial code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13056 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/gwps-common.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 08cc4c646f..c96b830cf2 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -1013,6 +1013,18 @@ static char *get_tag(struct gui_wps *gwps,
1013 } 1013 }
1014#endif 1014#endif
1015 1015
1016 case WPS_TOKEN_BATTERY_SLEEPTIME:
1017 {
1018 if (get_sleep_timer() == 0)
1019 return NULL;
1020 else
1021 {
1022 format_time(buf, buf_size, \
1023 get_sleep_timer() * 1000);
1024 return buf;
1025 }
1026 }
1027
1016 case WPS_TOKEN_PLAYBACK_STATUS: 1028 case WPS_TOKEN_PLAYBACK_STATUS:
1017 { 1029 {
1018 int status = audio_status(); 1030 int status = audio_status();