spelling: compensation

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref 2025-01-28 13:18:19 -05:00
parent 0e66fca4ed
commit 9ac1fb003d

View file

@ -43,11 +43,11 @@ void status_led_set(StatusLedState state) {
s_led_color = new_color;
// Tell the battery curve service to account for the updated LED state.
int compenstation_mv = 0;
int compensation_mv = 0;
if (s_led_color != LED_BLACK) {
compenstation_mv = BOARD_CONFIG_POWER.charging_status_led_voltage_compensation;
compensation_mv = BOARD_CONFIG_POWER.charging_status_led_voltage_compensation;
}
battery_curve_set_compensation(BATTERY_CURVE_COMPENSATE_STATUS_LED, compenstation_mv);
battery_curve_set_compensation(BATTERY_CURVE_COMPENSATE_STATUS_LED, compensation_mv);
led_controller_rgb_set_color(s_led_color);
}