reworked CJC appearance

This commit is contained in:
discip
2022-11-17 00:30:27 +01:00
committed by GitHub
parent 1444f94425
commit 161b8ba2cb
36 changed files with 169 additions and 8 deletions

View File

@@ -110,9 +110,11 @@ void performCJCC() {
// cycle through the filter a fair bit to ensure we're stable.
OLED::clearScreen();
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++)
OLED::print(SymbolDot, FontStyle::LARGE);
OLED::print(SymbolDot, FontStyle::SMALL);
OLED::refresh();
osDelay(100);
}
@@ -120,11 +122,8 @@ void performCJCC() {
}
setSettingValue(SettingsOptions::CalibrationOffset, setoffset);
OLED::clearScreen();
OLED::setCursor(0, 0);
OLED::drawCheckbox(true);
OLED::printNumber(setoffset, 5, FontStyle::LARGE);
warnUser(translatedString(Tr->CJCCalibrationDone), 3 * TICKS_SECOND);
OLED::refresh();
osDelay(1200);
// Preventing to repeat calibration at boot automatically (only one shot).
setSettingValue(SettingsOptions::CalibrateCJC, 0);
saveSettings();
@@ -1231,4 +1230,4 @@ void startGUITask(void const *argument) {
GUIDelay();
}
}
}
}