mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Update draw_power_source_icon.cpp
This commit is contained in:
@@ -11,15 +11,10 @@ void ui_draw_power_source_icon(void) {
|
|||||||
} else {
|
} else {
|
||||||
V = V / 10;
|
V = V / 10;
|
||||||
}
|
}
|
||||||
if (V > 9) {
|
int16_t xPos = OLED::getCursorX();
|
||||||
int16_t xPos = OLED::getCursorX();
|
OLED::printNumber(V / 10, 1, FontStyle::LARGE);
|
||||||
OLED::printNumber(V / 10, 1, FontStyle::SMALL);
|
OLED::setCursor(xPos, 16);
|
||||||
OLED::setCursor(xPos, 8);
|
OLED::printNumber(V % 10, 1, FontStyle::LARGE);
|
||||||
OLED::printNumber(V % 10, 1, FontStyle::SMALL);
|
|
||||||
OLED::setCursor(xPos + 12, 0); // need to reset this as if we drew a wide char
|
|
||||||
} else {
|
|
||||||
OLED::printNumber(V, 1, FontStyle::LARGE);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user