diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2006-03-28 10:07:34 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2006-03-28 10:07:34 +0000 |
| commit | 93b5f24083386d2c2385c18fdfa394ef67cd0f67 (patch) | |
| tree | 3bc7f5299e720c350e96ea1630a6547df0547276 /apps | |
| parent | 25173f45b7d0ce620e72cf4492acede07cc35eb5 (diff) | |
| download | rockbox-93b5f24083386d2c2385c18fdfa394ef67cd0f67.zip rockbox-93b5f24083386d2c2385c18fdfa394ef67cd0f67.tar.gz rockbox-93b5f24083386d2c2385c18fdfa394ef67cd0f67.tar.bz2 rockbox-93b5f24083386d2c2385c18fdfa394ef67cd0f67.tar.xz | |
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')
| -rw-r--r-- | apps/gui/gwps-common.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index 37306fb..ca366a9 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, return buf; } + case 's': /* sleep timer */ + { + if (get_sleep_timer() == 0) + { + return NULL; + } + else + { + gui_wps_format_time(buf, buf_size, \ + get_sleep_timer() * 1000); + return buf; + } + } + #ifdef HAVE_CHARGING case 'p': /* External power plugged in? */ { |