TM: Fix TM calibration from the Calibration menu

After dece5d268f, running the thermal
model itself switches the printer to "active", preventing a calibration
run from the LCD to start.

Explicitly allow LcdCommands::ThermalModel in this case.
This commit is contained in:
Yuri D'Elia 2023-08-01 11:54:10 +02:00
parent 1030a3ab1d
commit baacc0ec53
1 changed files with 1 additions and 1 deletions

View File

@ -2724,7 +2724,7 @@ void thermal_model_autotune(int16_t temp, bool selftest)
thermal_model_autotune_err = true;
char tm_message[LCD_WIDTH+1];
if(moves_planned() || printer_active()) {
if(moves_planned() || (lcd_commands_type != LcdCommands::ThermalModel && printer_active())) {
sprintf_P(tm_message, PSTR("TM: Cal. NOT IDLE"));
lcd_setstatus_serial(tm_message);
return;