1
0
forked from me/IronOS

Update CJC.cpp

This commit is contained in:
Ben V. Brown
2022-11-23 21:06:01 +11:00
parent 3007a44e45
commit 38b4a87602

View File

@@ -17,9 +17,11 @@ void performCJCC(void) {
// cycle through the filter a fair bit to ensure we're stable. // cycle through the filter a fair bit to ensure we're stable.
OLED::clearScreen(); OLED::clearScreen();
OLED::setCursor(0, 0); OLED::setCursor(0, 0);
OLED::print(SymbolDot, FontStyle::LARGE); OLED::print(translatedString(Tr->CJCCalibrating), FontStyle::SMALL);
OLED::setCursor(0, 8);
OLED::print(SymbolDot, FontStyle::SMALL);
for (uint8_t x = 0; x < (i / 4); x++) for (uint8_t x = 0; x < (i / 4); x++)
OLED::print(SymbolDot, FontStyle::LARGE); OLED::print(SymbolDot, FontStyle::SMALL);
OLED::refresh(); OLED::refresh();
osDelay(100); osDelay(100);
} }
@@ -27,11 +29,8 @@ void performCJCC(void) {
} }
setSettingValue(SettingsOptions::CalibrationOffset, setoffset); setSettingValue(SettingsOptions::CalibrationOffset, setoffset);
OLED::clearScreen(); OLED::clearScreen();
OLED::setCursor(0, 0); warnUser(translatedString(Tr->CJCCalibrationDone), 3 * TICKS_SECOND);
OLED::drawCheckbox(true);
OLED::printNumber(setoffset, 5, FontStyle::LARGE);
OLED::refresh(); OLED::refresh();
osDelay(1200);
// Preventing to repeat calibration at boot automatically (only one shot). // Preventing to repeat calibration at boot automatically (only one shot).
setSettingValue(SettingsOptions::CalibrateCJC, 0); setSettingValue(SettingsOptions::CalibrateCJC, 0);
saveSettings(); saveSettings();