From 3dc42ba8c70bb7602da76c4330e326912292dbe1 Mon Sep 17 00:00:00 2001 From: Nicolas Pennequin Date: Sat, 7 Apr 2007 11:57:59 +0000 Subject: 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 --- apps/gui/gwps-common.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'apps') 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, } #endif + case WPS_TOKEN_BATTERY_SLEEPTIME: + { + if (get_sleep_timer() == 0) + return NULL; + else + { + format_time(buf, buf_size, \ + get_sleep_timer() * 1000); + return buf; + } + } + case WPS_TOKEN_PLAYBACK_STATUS: { int status = audio_status(); -- cgit v1.2.3