Browse Source

thermal runaway: reset cmd queue to ensure that heater/bed temp will be always set to zero

PavelSindler 6 years ago
parent
commit
858945d949
1 changed files with 3 additions and 0 deletions
  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();