diff options
author | Ben V. Brown <[email protected]> | 2022-02-06 15:56:41 +1100 |
---|---|---|
committer | Ben V. Brown <[email protected]> | 2022-02-06 15:56:41 +1100 |
commit | f715f77848c44f0ea1c62cece461f0c3bbbbf7d1 (patch) | |
tree | e2374c3cd0dacd204a7b41663991f08b46fd1bef /source | |
parent | 2f28e6b4870e2debce6fc25c0cb2db885dedd5fa (diff) | |
download | IronOS-f715f77848c44f0ea1c62cece461f0c3bbbbf7d1.tar.gz IronOS-f715f77848c44f0ea1c62cece461f0c3bbbbf7d1.zip |
fix oled layout _again_
Diffstat (limited to 'source')
m--------- | source/Core/Drivers/usb-pd | 0 | ||||
-rw-r--r-- | source/Core/Threads/GUIThread.cpp | 14 |
2 files changed, 8 insertions, 6 deletions
diff --git a/source/Core/Drivers/usb-pd b/source/Core/Drivers/usb-pd -Subproject 4c5a5625bab7191b77147e1ef1bd6e2705f9e64 +Subproject b38598261df4f705bcbd37cdd5dcccfaa5ab7b4 diff --git a/source/Core/Threads/GUIThread.cpp b/source/Core/Threads/GUIThread.cpp index 940cde55..bb6ca51f 100644 --- a/source/Core/Threads/GUIThread.cpp +++ b/source/Core/Threads/GUIThread.cpp @@ -539,15 +539,16 @@ static void gui_solderingMode(uint8_t jumpToSleep) { } } // else we update the screen information - if (OLED::getRotation()) { - OLED::setCursor(50, 0); - } else { - OLED::setCursor(-1, 0); - } + OLED::clearScreen(); - OLED::setCursor(0, 0); + // Draw in the screen details if (getSettingValue(SettingsOptions::DetailedSoldering)) { + if (OLED::getRotation()) { + OLED::setCursor(50, 0); + } else { + OLED::setCursor(-1, 0); + } gui_drawTipTemp(true, FontStyle::LARGE); #ifndef NO_SLEEP_MODE @@ -588,6 +589,7 @@ static void gui_solderingMode(uint8_t jumpToSleep) { printVoltage(); OLED::print(SymbolVolts, FontStyle::SMALL); } else { + OLED::setCursor(0, 0); // We switch the layout direction depending on the orientation of the oled if (OLED::getRotation()) { // battery |