diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/main_menu.c | 9 | ||||
-rw-r--r-- | apps/screens.c | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/apps/main_menu.c b/apps/main_menu.c index 68d6699cd5..87518cff28 100644 --- a/apps/main_menu.c +++ b/apps/main_menu.c | |||
@@ -361,6 +361,13 @@ bool info_menu(void) | |||
361 | return result; | 361 | return result; |
362 | } | 362 | } |
363 | 363 | ||
364 | #ifdef HAVE_LCD_CHARCELLS | ||
365 | static void do_shutdown(void) | ||
366 | { | ||
367 | sys_poweroff(false); | ||
368 | } | ||
369 | #endif | ||
370 | |||
364 | bool main_menu(void) | 371 | bool main_menu(void) |
365 | { | 372 | { |
366 | int m; | 373 | int m; |
@@ -405,7 +412,7 @@ bool main_menu(void) | |||
405 | 412 | ||
406 | #ifdef HAVE_LCD_CHARCELLS | 413 | #ifdef HAVE_LCD_CHARCELLS |
407 | items[i].desc = ID2P(LANG_SHUTDOWN); | 414 | items[i].desc = ID2P(LANG_SHUTDOWN); |
408 | items[i++].function = clean_shutdown; | 415 | items[i++].function = do_shutdown; |
409 | #endif | 416 | #endif |
410 | 417 | ||
411 | m=menu_init( items, i, NULL, NULL, NULL, NULL ); | 418 | m=menu_init( items, i, NULL, NULL, NULL, NULL ); |
diff --git a/apps/screens.c b/apps/screens.c index e188d341d8..6d9b299c54 100644 --- a/apps/screens.c +++ b/apps/screens.c | |||
@@ -1253,7 +1253,7 @@ bool shutdown_screen(void) | |||
1253 | switch(button) | 1253 | switch(button) |
1254 | { | 1254 | { |
1255 | case BUTTON_OFF: | 1255 | case BUTTON_OFF: |
1256 | clean_shutdown(); | 1256 | sys_poweroff(false); |
1257 | break; | 1257 | break; |
1258 | 1258 | ||
1259 | default: | 1259 | default: |