We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94e88e1 commit 93edb8fCopy full SHA for 93edb8f
src/sp140/lvgl/lvgl_updates.cpp
@@ -352,7 +352,7 @@ void updateLvglMainScreen(
352
353
// Set color based on percentage
354
lv_color_t batteryColor = LVGL_RED;
355
- if (batteryPercent >= bmsSOCThresholds.warnLow) {
+ if (batteryPercent > bmsSOCThresholds.warnLow) {
356
batteryColor = LVGL_GREEN;
357
} else if (batteryPercent >= bmsSOCThresholds.critLow) {
358
batteryColor = LVGL_YELLOW;
0 commit comments