Finally reversing battery level

This commit is contained in:
Lukas Bachschwell 2018-04-30 20:46:58 +02:00
parent af0e105366
commit a13936c35e
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}
}
}