Modified battery icon levels

This commit is contained in:
Krzysiek Egzmont committed 2023-11-02 02:44:05 +01:00
1 parent c057f8a097
commit 9777b5df8b
3 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -30,10 +30,10 @@ void UI_DrawBattery(uint8_t* bitmap, uint8_t level, uint8_t blink)
else
{
memmove(bitmap, BITMAP_BatteryLevel1, sizeof(BITMAP_BatteryLevel1));
if (level > 1)
if (level > 2)
{
unsigned int i;
uint8_t bars = level - 1;
uint8_t bars = level - 2;
if (bars > 4)
bars = 4;
for (i = 0; i < bars; i++)