Skip to content

Commit d0df278

Browse files
authored
Update BatteryIcon.cpp
Improvement to the mapping of battery percentage to the battery icon to be displayed.
1 parent 79f0fcb commit d0df278

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/displayapp/screens/BatteryIcon.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
using namespace Pinetime::Applications::Screens;
55

66
const char* BatteryIcon::GetBatteryIcon(int batteryPercent) {
7-
if (batteryPercent > 90)
7+
if (batteryPercent > 87)
88
return Symbols::batteryFull;
9-
if (batteryPercent > 75)
9+
if (batteryPercent > 62)
1010
return Symbols::batteryThreeQuarter;
11-
if (batteryPercent > 50)
11+
if (batteryPercent > 37)
1212
return Symbols::batteryHalf;
13-
if (batteryPercent > 25)
13+
if (batteryPercent > 12)
1414
return Symbols::batteryOneQuarter;
1515
return Symbols::batteryEmpty;
1616
}

0 commit comments

Comments
 (0)