Skip to content

Commit 93edb8f

Browse files
committed
Update battery color logic in LVGL main screen 15%
1 parent 94e88e1 commit 93edb8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sp140/lvgl/lvgl_updates.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ void updateLvglMainScreen(
352352

353353
// Set color based on percentage
354354
lv_color_t batteryColor = LVGL_RED;
355-
if (batteryPercent >= bmsSOCThresholds.warnLow) {
355+
if (batteryPercent > bmsSOCThresholds.warnLow) {
356356
batteryColor = LVGL_GREEN;
357357
} else if (batteryPercent >= bmsSOCThresholds.critLow) {
358358
batteryColor = LVGL_YELLOW;

0 commit comments

Comments
 (0)