From baacc0ec5352ce7397ac65d97a6a2fd676fd12b1 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Tue, 1 Aug 2023 11:54:10 +0200 Subject: [PATCH] TM: Fix TM calibration from the Calibration menu After dece5d268f4c4a77e2b2e54ea252d7a4444663ea, 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. --- Firmware/temperature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/temperature.cpp b/Firmware/temperature.cpp index 82895486a..d02a900a6 100755 --- a/Firmware/temperature.cpp +++ b/Firmware/temperature.cpp @@ -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;