From e9f63cdfd81b733fe63c8eb5846215379152a115 Mon Sep 17 00:00:00 2001 From: Purdea Andrei Date: Mon, 16 Jan 2023 04:54:34 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20the=20calibrate=20voltage=20screen,=20whe?= =?UTF-8?q?n=20it=20exits,=20it=20used=20to=20overlay=20t=E2=80=A6=20(#153?= =?UTF-8?q?0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix the calibrate voltage screen, when it exits, it used to overlay the calibrated divider over the previous displayed image, causing confusion. Now it clears the screen before printing the calibrated value --- source/Core/Src/settingsGUI.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/Core/Src/settingsGUI.cpp b/source/Core/Src/settingsGUI.cpp index 41026292..71612d36 100644 --- a/source/Core/Src/settingsGUI.cpp +++ b/source/Core/Src/settingsGUI.cpp @@ -682,6 +682,7 @@ static bool setCalibrateVIN(void) { case BUTTON_F_LONG: case BUTTON_B_LONG: saveSettings(); + OLED::clearScreen(); OLED::setCursor(0, 0); OLED::printNumber(getSettingValue(SettingsOptions::VoltageDiv), 3, FontStyle::LARGE); OLED::refresh();