FIX #269: battery indicator always at 4 bars

This commit is contained in:
Krzysiek Egzmont 2023-12-14 15:07:33 +01:00
parent 1a53586922
commit fa5d3c1594

View File

@ -36,7 +36,7 @@ void UI_DrawBattery(uint8_t* bitmap, uint8_t level, uint8_t blink)
return;
}
const uint8_t bars = MAX(4, level - 2);
const uint8_t bars = MIN(4, level - 2);
for (int i = 0; i < bars; i++) {
#ifndef ENABLE_REVERSE_BAT_SYMBOL