Finally reversing battery level

This commit is contained in:
Lukas Bachschwell 2018-04-30 20:46:58 +02:00
parent af0e105366
commit a13936c35e

View File

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