summaryrefslogtreecommitdiff
path: root/firmware/drivers/button.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/button.c')
-rw-r--r--firmware/drivers/button.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index cab62f950c..5a40bdfde0 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -164,7 +164,7 @@ static void button_tick(void)
164 || btn == RC_POWEROFF_BUTTON 164 || btn == RC_POWEROFF_BUTTON
165#endif 165#endif
166 ) && 166 ) &&
167#if defined(CONFIG_CHARGING) && !defined(HAVE_POWEROFF_WHILE_CHARGING) 167#if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING)
168 !charger_inserted() && 168 !charger_inserted() &&
169#endif 169#endif
170 repeat_count > POWEROFF_COUNT) 170 repeat_count > POWEROFF_COUNT)