From 550542e3308d2e108b7964d063d6971df4b8fa80 Mon Sep 17 00:00:00 2001 From: PavelSindler Date: Wed, 10 Oct 2018 18:37:32 +0200 Subject: [PATCH] clean input command queue when thermal_runaway occurs --- Firmware/temperature.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Firmware/temperature.cpp b/Firmware/temperature.cpp index dc4c797a5..9e8fdd36d 100644 --- a/Firmware/temperature.cpp +++ b/Firmware/temperature.cpp @@ -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();