summaryrefslogtreecommitdiff
path: root/apps/gui/gwps-common.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-03-28 10:07:34 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-03-28 10:07:34 +0000
commit93b5f24083386d2c2385c18fdfa394ef67cd0f67 (patch)
tree3bc7f5299e720c350e96ea1630a6547df0547276 /apps/gui/gwps-common.c
parent25173f45b7d0ce620e72cf4492acede07cc35eb5 (diff)
downloadrockbox-93b5f24083386d2c2385c18fdfa394ef67cd0f67.tar.gz
rockbox-93b5f24083386d2c2385c18fdfa394ef67cd0f67.zip
Patch #2854 by David Dent - %bs WPS tag for sleep timer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9303 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r--apps/gui/gwps-common.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 37306fb0e3..ca366a92af 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -803,6 +803,20 @@ static char* get_tag(struct wps_data* wps_data,
803 return buf; 803 return buf;
804 } 804 }
805 805
806 case 's': /* sleep timer */
807 {
808 if (get_sleep_timer() == 0)
809 {
810 return NULL;
811 }
812 else
813 {
814 gui_wps_format_time(buf, buf_size, \
815 get_sleep_timer() * 1000);
816 return buf;
817 }
818 }
819
806#ifdef HAVE_CHARGING 820#ifdef HAVE_CHARGING
807 case 'p': /* External power plugged in? */ 821 case 'p': /* External power plugged in? */
808 { 822 {