forked from len0rd/rockbox
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
This commit is contained in:
parent
0b5998c7ea
commit
3dc42ba8c7
1 changed files with 12 additions and 0 deletions
|
@ -1013,6 +1013,18 @@ static char *get_tag(struct gui_wps *gwps,
|
||||||
}
|
}
|
||||||
#endif
|
#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:
|
case WPS_TOKEN_PLAYBACK_STATUS:
|
||||||
{
|
{
|
||||||
int status = audio_status();
|
int status = audio_status();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue