Pārlūkot izejas kodu

clean input command queue when thermal_runaway occurs

PavelSindler 5 gadi atpakaļ
vecāks
revīzija
550542e330
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      Firmware/temperature.cpp

+ 3 - 0
Firmware/temperature.cpp

@@ -1227,6 +1227,9 @@ void temp_runaway_stop(bool isPreheat, bool isBed)
 		card.sdprinting = false;
 		card.closefile();
 	}
+	// Clean the input command queue 
+	// This is necessary, because in command queue there can be commands which would later set heater or bed temperature.
+	cmdqueue_reset();
 	
 	disable_heater();
 	disable_x();