diff options
-rw-r--r-- | apps/menus/main_menu.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c index 602becd2b3..7f8a56e887 100644 --- a/apps/menus/main_menu.c +++ b/apps/menus/main_menu.c | |||
@@ -430,18 +430,13 @@ static int sleep_timer(void) | |||
430 | 430 | ||
431 | static int seconds_to_min(int secs) | 431 | static int seconds_to_min(int secs) |
432 | { | 432 | { |
433 | int min = secs / 60; | 433 | return (secs + 10) / 60; /* round up for 50+ seconds */ |
434 | if ((secs % 60) > 50) /* round up for 50+ seconds */ | ||
435 | min++; | ||
436 | |||
437 | return min; | ||
438 | } | 434 | } |
439 | 435 | ||
440 | static char* sleep_timer_getname(int selected_item, void * data, char *buffer) | 436 | static char* sleep_timer_getname(int selected_item, void * data, char *buffer) |
441 | { | 437 | { |
442 | (void)selected_item; | 438 | (void)selected_item; |
443 | (void)data; | 439 | (void)data; |
444 | (void)buffer; | ||
445 | int sec = get_sleep_timer(); | 440 | int sec = get_sleep_timer(); |
446 | char timer_buf[10]; | 441 | char timer_buf[10]; |
447 | /* we have no sprintf, so MAX_PATH is a guess */ | 442 | /* we have no sprintf, so MAX_PATH is a guess */ |