Modified battery icon levels

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

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++)