mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Update GUIThread.cpp
This commit is contained in:
@@ -163,8 +163,8 @@ static void gui_drawBatteryIcon() {
|
|||||||
if (cellV < systemSettings.minVoltageCells)
|
if (cellV < systemSettings.minVoltageCells)
|
||||||
cellV = systemSettings.minVoltageCells;
|
cellV = systemSettings.minVoltageCells;
|
||||||
cellV -= systemSettings.minVoltageCells; // Should leave us a number of 0-9
|
cellV -= systemSettings.minVoltageCells; // Should leave us a number of 0-9
|
||||||
if (cellV > (uint32_t)(42 - systemSettings.minVoltageCells))
|
if (cellV > 9)
|
||||||
cellV = 42 - systemSettings.minVoltageCells;
|
cellV = 9;
|
||||||
OLED::drawBattery(cellV + 1);
|
OLED::drawBattery(cellV + 1);
|
||||||
} else {
|
} else {
|
||||||
OLED::drawSymbol(15); // Draw the DC Logo
|
OLED::drawSymbol(15); // Draw the DC Logo
|
||||||
|
|||||||
Reference in New Issue
Block a user