Finally reversing battery level

master
Lukas Bachschwell 5 years ago
parent af0e105366
commit a13936c35e

@ -475,9 +475,8 @@ void drawBatteryLevel() {
for (int i = 0; i < 5; i++) {
int p = round((100 / 5) * i);
if (p <= level)
{
u8g2.drawBox(x + 4 + (3 * i), y + 2, 2, 5);
if (p <= level) {
u8g2.drawBox(x + 4 + (3 * (4-i)), y + 2, 2, 5);
}
}
}

Loading…
Cancel
Save