reworked CJC appearance
This commit is contained in:
@@ -74,6 +74,7 @@ enum class SettingsItemIndex : uint8_t {
|
||||
|
||||
struct TranslationIndexTable {
|
||||
uint16_t SettingsCalibrationWarning;
|
||||
uint16_t CJCCalibrating;
|
||||
uint16_t SettingsResetWarning;
|
||||
uint16_t UVLOWarningString;
|
||||
uint16_t UndervoltageString;
|
||||
@@ -85,6 +86,7 @@ struct TranslationIndexTable {
|
||||
uint16_t OffString;
|
||||
uint16_t DeviceFailedValidationWarning;
|
||||
|
||||
uint16_t CJCCalibrationDone;
|
||||
uint16_t SettingsResetMessage;
|
||||
uint16_t NoAccelerometerMessage;
|
||||
uint16_t NoPowerDeliveryMessage;
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user