From 99bff425d6b5b543bb739f839ba5bd60c1c7f51c Mon Sep 17 00:00:00 2001 From: OneOfEleven Date: Wed, 20 Sep 2023 09:05:27 +0100 Subject: [PATCH] Hopefully fixed battery symbol dancing left/right --- firmware | Bin 165752 -> 165752 bytes firmware.bin | Bin 50620 -> 50620 bytes firmware.packed.bin | Bin 50638 -> 50638 bytes ui/battery.c | 6 +++++- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/firmware b/firmware index 5fd3fe041691577f235bf3a2a9affa0ec511aea1..1bd0e1ad33505b3025d4c4aa597828efab62c091 100644 GIT binary patch delta 48 ycmey-$MvI+t6>XcSvO<;_VRAVMXcSvOr8drOcb^(vig#2^hIkLua88M=<^So>ks&{G8t$C E0O&~*X#fBK delta 47 zcmX@t&3vw#c|%(_quS>7?nfqKf6Y_{jY}Uavig#2^hIl0oWG!{(55Au>ks&{GHDqD E0QCwJng9R* diff --git a/ui/battery.c b/ui/battery.c index 3fd772a..d7541ed 100644 --- a/ui/battery.c +++ b/ui/battery.c @@ -27,6 +27,8 @@ void UI_DisplayBattery(uint8_t Level) if (gCurrentFunction != 1) { + const unsigned int x = LCD_WIDTH - sizeof(BITMAP_BatteryLevel5); + switch (Level) { case 0: @@ -49,6 +51,8 @@ void UI_DisplayBattery(uint8_t Level) pBitmap = BITMAP_BatteryLevel5; break; } - ST7565_DrawLine(110, 0, 18, pBitmap, bClearMode); + + // col lne, siz, bm, clr/set-pixels + ST7565_DrawLine(x, 0, 18, pBitmap, bClearMode); } }