Hopefully fixed battery symbol dancing left/right

This commit is contained in:
OneOfEleven 2023-09-20 09:05:27 +01:00
parent 2e0571b600
commit 99bff425d6
4 changed files with 5 additions and 1 deletions

BIN
firmware

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

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