1
0
forked from me/IronOS

Fix the calibrate voltage screen, when it exits, it used to overlay t… (#1530)

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
This commit is contained in:
Purdea Andrei
2023-01-16 04:54:34 +02:00
committed by GitHub
parent 7f43562a4f
commit e9f63cdfd8

View File

@@ -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();