summaryrefslogtreecommitdiff
path: root/src/displayapp/screens
diff options
context:
space:
mode:
authorhassless <85612141+hassless@users.noreply.github.com>2021-06-09 13:47:22 +0200
committerGitHub <noreply@github.com>2021-06-09 13:47:22 +0200
commitd0df278b0be2aae0493d901569a094dba221ce99 (patch)
treef0e8b8470c21ca9b2058c743bca56edaee69b801 /src/displayapp/screens
parent79f0fcb07aa80eb70385223272e29f2ba5657bc8 (diff)
Update BatteryIcon.cpp
Improvement to the mapping of battery percentage to the battery icon to be displayed.
Diffstat (limited to 'src/displayapp/screens')
-rw-r--r--src/displayapp/screens/BatteryIcon.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/displayapp/screens/BatteryIcon.cpp b/src/displayapp/screens/BatteryIcon.cpp
index 6b54a305..ff8a1381 100644
--- a/src/displayapp/screens/BatteryIcon.cpp
+++ b/src/displayapp/screens/BatteryIcon.cpp
@@ -4,13 +4,13 @@
using namespace Pinetime::Applications::Screens;
const char* BatteryIcon::GetBatteryIcon(int batteryPercent) {
- if (batteryPercent > 90)
+ if (batteryPercent > 87)
return Symbols::batteryFull;
- if (batteryPercent > 75)
+ if (batteryPercent > 62)
return Symbols::batteryThreeQuarter;
- if (batteryPercent > 50)
+ if (batteryPercent > 37)
return Symbols::batteryHalf;
- if (batteryPercent > 25)
+ if (batteryPercent > 12)
return Symbols::batteryOneQuarter;
return Symbols::batteryEmpty;
}