Handle CALIBRATION_STATUS_TEMP_MODEL

This commit is contained in:
Yuri D'Elia 2022-12-24 20:35:18 +01:00 committed by DRracer
parent 16de033504
commit 0c583ff90a

View File

@ -1063,16 +1063,11 @@ void lcd_commands()
case 1: case 1:
lcd_commands_step = 0; lcd_commands_step = 0;
lcd_commands_type = LcdCommands::Idle; lcd_commands_type = LcdCommands::Idle;
bool res = temp_model_autotune_result();
if (temp_model_autotune_result()) { if (res) calibration_status_set(CALIBRATION_STATUS_TEMP_MODEL);
if (calibration_status() == CALIBRATION_STATUS_TEMP_MODEL_CALIBRATION) { if (eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE)) {
// move to the next calibration step if not fully calibrated // resume the wizard
calibration_status_store(CALIBRATION_STATUS_LIVE_ADJUST); lcd_wizard(res ? WizState::Restore : WizState::Failed);
}
if ((eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE) == 1)) {
// successful: resume the wizard
lcd_wizard(WizState::IsFil);
}
} }
break; break;
} }