mirror of
https://github.com/egzumer/uv-k5-firmware-custom
synced 2024-11-23 19:28:40 +00:00
FIX #269: battery indicator always at 4 bars
This commit is contained in:
parent
1a53586922
commit
fa5d3c1594
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user