summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 755eba095f..6ca28cbb01 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -458,7 +458,7 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
458 (void)parameter; 458 (void)parameter;
459 exit(0); 459 exit(0);
460#else 460#else
461#ifndef HAVE_POWEROFF_WHILE_CHARGING 461#if defined(HAVE_CHARGING) && !defined(HAVE_POWEROFF_WHILE_CHARGING)
462 if(!charger_inserted()) 462 if(!charger_inserted())
463#endif 463#endif
464 { 464 {