aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2022-12-31 09:56:03 +0200
committerRiku Isokoski <riksu9000@gmail.com>2023-03-02 13:38:31 +0200
commitfff0a00a4a251fafa1c195d9f92fdc07affe3ca2 (patch)
tree4318b106d753512c6901a5f2e44b891a38a2750d /src/displayapp/screens
parent3b084d74c3b3864a4ce666dce0285aaf43a48a29 (diff)
Revert "added low battery message"
This reverts PR https://github.com/InfiniTimeOrg/InfiniTime/pull/1352
Diffstat (limited to 'src/displayapp/screens')
-rw-r--r--src/displayapp/screens/BatteryInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/BatteryInfo.cpp b/src/displayapp/screens/BatteryInfo.cpp
index 7cfd0aca..ab0a2bd4 100644
--- a/src/displayapp/screens/BatteryInfo.cpp
+++ b/src/displayapp/screens/BatteryInfo.cpp
@@ -58,7 +58,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 (batteryController.BatteryIsLow()) {
+ } else if (batteryPercent < 10) {
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 {