Merge pull request #384 from PavelSindler/MK3_for_merging

thermal runaway: reset cmd queue
This commit is contained in:
PavelSindler 2018-01-09 13:50:19 +01:00 committed by GitHub
commit 22f7e577c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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