Explorar o código

clean input command queue when thermal_runaway occurs

PavelSindler %!s(int64=6) %!d(string=hai) anos
pai
achega
550542e330
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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();