From 71d2016f4d279ec19167c1eaa072930dc1546deb Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Tue, 14 Oct 2025 13:22:51 +0200 Subject: [PATCH] shortcuts: Power off while charging if supported Change-Id: I33b9d643053f746d24240ba59a34a1f9c7644f3e --- apps/shortcuts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/shortcuts.c b/apps/shortcuts.c index e99a93ec20..49bb0d45f1 100644 --- a/apps/shortcuts.c +++ b/apps/shortcuts.c @@ -821,7 +821,7 @@ int do_shortcut_menu(void *ignored) run_debug_screen(sc->u.path); break; case SHORTCUT_SHUTDOWN: -#if CONFIG_CHARGING +#if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING) if (charger_inserted()) charging_splash(); else @@ -829,7 +829,7 @@ int do_shortcut_menu(void *ignored) sys_poweroff(); break; case SHORTCUT_REBOOT: -#if CONFIG_CHARGING +#if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING) if (charger_inserted()) charging_splash(); else