mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
Hopefully fixed battery symbol dancing left/right
This commit is contained in:
1 parent
2e0571b600
commit
99bff425d6
4 files changed
+5
-1
No files matched your search
Binary file not shown.
Binary file not shown.
+5
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user