From 858945d94929bca256f2e0c23899421bbd5eedfa Mon Sep 17 00:00:00 2001 From: PavelSindler Date: Tue, 9 Jan 2018 13:35:12 +0100 Subject: [PATCH] thermal runaway: reset cmd queue to ensure that heater/bed temp will be always set to zero --- Firmware/temperature.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Firmware/temperature.cpp b/Firmware/temperature.cpp index 2e3644b0..cd3c43cd 100644 --- a/Firmware/temperature.cpp +++ b/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();