mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-04 20:17:28 +00:00
FIX #269: battery indicator always at 4 bars
This commit is contained in:
1 parent
1a53586922
commit
fa5d3c1594
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user