added message, changed UI
This commit is contained in:
1 parent
59ee0ad1aa
commit
cad58f190f
4 files changed
+12
-8
No files matched your search
@@ -59,7 +59,7 @@ void BatteryInfo::Refresh() {
|
||||
} else if (batteryPercent == 100) {
|
||||
lv_obj_set_style_local_bg_color(charging_bar, LV_BAR_PART_INDIC, LV_STATE_DEFAULT, LV_COLOR_BLUE);
|
||||
lv_label_set_text_static(status, "Fully charged");
|
||||
} else if (batteryPercent < 10) {
|
||||
} else if (batteryController.BatteryIsLow()) {
|
||||
lv_obj_set_style_local_bg_color(charging_bar, LV_BAR_PART_INDIC, LV_STATE_DEFAULT, LV_COLOR_YELLOW);
|
||||
lv_label_set_text_static(status, "Battery low");
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user