From a13936c35ed335bfab065361fdbf6e96d7649252 Mon Sep 17 00:00:00 2001 From: Lukas Bachschwell Date: Mon, 30 Apr 2018 20:46:58 +0200 Subject: [PATCH] Finally reversing battery level --- src/remote.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/remote.cpp b/src/remote.cpp index c29fac3..a9dfb27 100644 --- a/src/remote.cpp +++ b/src/remote.cpp @@ -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); } } }