summaryrefslogtreecommitdiff
path: root/common/lightbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/lightbar.c')
-rw-r--r--common/lightbar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/lightbar.c b/common/lightbar.c
index f7dcc2572d..2a8bdf2478 100644
--- a/common/lightbar.c
+++ b/common/lightbar.c
@@ -268,7 +268,7 @@ static void get_battery_level(void)
if (demo_mode)
return;
-#ifdef CONFIG_TASK_CHARGER
+#ifdef HAS_TASK_CHARGER
pct = charge_get_percent();
st.battery_is_charging = (PWR_STATE_DISCHARGE != charge_get_state());
#endif