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

This commit is contained in:
PavelSindler 2018-01-09 13:35:12 +01:00
parent a672f5faad
commit 858945d949

View file

@ -1316,6 +1316,9 @@ void temp_runaway_stop(bool isPreheat, bool isBed)
card.sdprinting = false; card.sdprinting = false;
card.closefile(); 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_heater();
disable_x(); disable_x();