Sfoglia il codice sorgente

clean input command queue when thermal_runaway occurs

PavelSindler 6 anni fa
parent
commit
550542e330
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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();