clean input command queue when thermal_runaway occurs

This commit is contained in:
PavelSindler 2018-10-10 18:37:32 +02:00
parent 2b54e4ae4b
commit 550542e330
1 changed files with 3 additions and 0 deletions

View File

@ -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();