mirror of
https://github.com/egzumer/uv-k5-firmware-custom
synced 2024-11-22 01:32:43 +00:00
Hopefully fixed battery symbol dancing left/right
This commit is contained in:
parent
2e0571b600
commit
99bff425d6
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user