Procházet zdrojové kódy

Merge pull request #384 from PavelSindler/MK3_for_merging

thermal runaway: reset cmd queue
PavelSindler před 6 roky
rodič
revize
22f7e577c0
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      Firmware/temperature.cpp

+ 3 - 0
Firmware/temperature.cpp

@@ -1316,6 +1316,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();