From ccdbc8029ffe40a65f22e83445f00d9e32e265a0 Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Sat, 23 Mar 2024 08:15:40 +1100 Subject: [PATCH] Update draw_power_source_icon.cpp --- .../drawing/mono_128x32/draw_power_source_icon.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/source/Core/Threads/UI/drawing/mono_128x32/draw_power_source_icon.cpp b/source/Core/Threads/UI/drawing/mono_128x32/draw_power_source_icon.cpp index 2ccb9ff9..a2fbec52 100644 --- a/source/Core/Threads/UI/drawing/mono_128x32/draw_power_source_icon.cpp +++ b/source/Core/Threads/UI/drawing/mono_128x32/draw_power_source_icon.cpp @@ -11,15 +11,10 @@ void ui_draw_power_source_icon(void) { } else { V = V / 10; } - if (V > 9) { - int16_t xPos = OLED::getCursorX(); - OLED::printNumber(V / 10, 1, FontStyle::SMALL); - OLED::setCursor(xPos, 8); - 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); - } + int16_t xPos = OLED::getCursorX(); + OLED::printNumber(V / 10, 1, FontStyle::LARGE); + OLED::setCursor(xPos, 16); + OLED::printNumber(V % 10, 1, FontStyle::LARGE); return; } #endif