summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/SystemInfo.cpp
diff options
context:
space:
mode:
authorAvamander <avamander@gmail.com>2021-06-22 18:31:31 (GMT)
committerGitHub <noreply@github.com>2021-06-22 18:31:31 (GMT)
commit572be3e857f86047926f7ccae5a4197958580f98 (patch)
tree9f3878abd52e143da401250ff0be6b19379288d3 /src/displayapp/screens/SystemInfo.cpp
parent20a24f8cf56551eae1202f8dc5733bd0cf61adbf (diff)
Removed an illogical comparison from SystemInfo and St7789 driver (#449)
* Removed an illogical comparison
Diffstat (limited to 'src/displayapp/screens/SystemInfo.cpp')
-rw-r--r--src/displayapp/screens/SystemInfo.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/displayapp/screens/SystemInfo.cpp b/src/displayapp/screens/SystemInfo.cpp
index 0b16d63..1cf895c 100644
--- a/src/displayapp/screens/SystemInfo.cpp
+++ b/src/displayapp/screens/SystemInfo.cpp
@@ -141,9 +141,6 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen2() {
uptimeSeconds = uptimeSeconds % secondsInAMinute;
// TODO handle more than 100 days of uptime
- if (batteryPercent == -1)
- batteryPercent = 0;
-
// hack to not use the flot functions from printf
uint8_t batteryVoltageBytes[2];
batteryVoltageBytes[1] = static_cast<uint8_t>(batteryVoltage); // truncate whole numbers