summaryrefslogtreecommitdiff
path: root/common/led_onoff_states.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/led_onoff_states.c')
-rw-r--r--common/led_onoff_states.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/common/led_onoff_states.c b/common/led_onoff_states.c
index f5db121de0..8d1dce8971 100644
--- a/common/led_onoff_states.c
+++ b/common/led_onoff_states.c
@@ -38,10 +38,7 @@ int charge_get_percent(void);
static int led_get_charge_percent(void)
{
- if (IS_ENABLED(CONFIG_BATTERY_EXPORT_DISPLAY_SOC))
- return DIV_ROUND_NEAREST(charge_get_display_charge(), 10);
- else
- return charge_get_percent();
+ return DIV_ROUND_NEAREST(charge_get_display_charge(), 10);
}
static enum led_states led_get_state(void)