summaryrefslogtreecommitdiffstats
path: root/apps/menus
diff options
context:
space:
mode:
authorRichard Quirk <richard.quirk@gmail.com>2012-10-05 21:30:13 +0200
committerJonathan Gordon <rockbox@jdgordon.info>2012-10-06 11:59:13 +0200
commit71f70112b2484e45b332fd7f2da137145aa05e9d (patch)
tree84353c0f8e1fc09d07e3ffa887ae8bb37dd02112 /apps/menus
parent9ee396b846a923a415d023be537cf5a2fc3bb78f (diff)
downloadrockbox-71f70112b2484e45b332fd7f2da137145aa05e9d.tar.gz
rockbox-71f70112b2484e45b332fd7f2da137145aa05e9d.tar.bz2
rockbox-71f70112b2484e45b332fd7f2da137145aa05e9d.zip
Add set_sleeptimer_duration function in minutes
Make set_sleep_timer a static function and only call set_sleeptimer_duration externally, which is always called with minutes values. Change-Id: I985308bf014e354f91c47a0b2bf62f4f5a591919 Reviewed-on: http://gerrit.rockbox.org/327 Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info>
Diffstat (limited to 'apps/menus')
-rw-r--r--apps/menus/settings_menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c
index f2249e3a57..fbc83fd60d 100644
--- a/apps/menus/settings_menu.c
+++ b/apps/menus/settings_menu.c
@@ -438,8 +438,8 @@ static int sleep_timer_voice(int selected_item, void*data)
/* If a sleep timer is running, cancel it, otherwise start one */
static int toggle_sleeptimer(void)
{
- set_sleep_timer(get_sleep_timer() ? 0
- : global_settings.sleeptimer_duration * 60);
+ set_sleeptimer_duration(get_sleep_timer() ? 0
+ : global_settings.sleeptimer_duration);
return 0;
}