diff options
| author | Brandon Low <lostlogic@rockbox.org> | 2006-04-05 22:36:42 +0000 |
|---|---|---|
| committer | Brandon Low <lostlogic@rockbox.org> | 2006-04-05 22:36:42 +0000 |
| commit | a69c495e5dd91b7404f92f4f44e773ef8cd59683 (patch) | |
| tree | cdf7df205e42493172eff94fcecc0b2786d10e31 /apps/settings_menu.c | |
| parent | 51deb1d158cc6f136f7839b3a0657fc1b58162fc (diff) | |
| download | rockbox-a69c495e5dd91b7404f92f4f44e773ef8cd59683.zip rockbox-a69c495e5dd91b7404f92f4f44e773ef8cd59683.tar.gz rockbox-a69c495e5dd91b7404f92f4f44e773ef8cd59683.tar.bz2 rockbox-a69c495e5dd91b7404f92f4f44e773ef8cd59683.tar.xz | |
Patches from bug #5001 by Rani Hod, should make settings more resiliant to having 'off-step' values in a general way, but specifically fixes that bug report, and also round the current sleep timer value up when entering settings for sleep timer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9527 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings_menu.c')
| -rw-r--r-- | apps/settings_menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 987994a..04f8c0c 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c @@ -827,7 +827,7 @@ static void sleep_timer_set(int minutes) static bool sleep_timer(void) { - int minutes = get_sleep_timer() / 60; + int minutes = (get_sleep_timer() + 59) / 60; /* round up */ return set_int(str(LANG_SLEEP_TIMER), "", UNIT_MIN, &minutes, &sleep_timer_set, 5, 0, 300, sleep_timer_formatter); |