From a15f2807d94ee4ae4a551442fb8151dca09d1967 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Thu, 26 May 2022 20:19:16 +0200 Subject: [PATCH] Allow to continue printing with TEMP_MODEL_CHECK_WARN_ONLY for debugging --- Firmware/temperature.cpp | 6 ++++++ Firmware/variants/1_75mm_MK3S-EINSy10a-E3Dv6full.h | 1 + 2 files changed, 7 insertions(+) diff --git a/Firmware/temperature.cpp b/Firmware/temperature.cpp index 43bcf9c0d..8ba78e3e3 100755 --- a/Firmware/temperature.cpp +++ b/Firmware/temperature.cpp @@ -467,8 +467,14 @@ volatile static union void set_temp_error(TempErrorSource source, uint8_t index, TempErrorType type) { // keep disabling heaters and keep fans on as long as the condition is asserted +#ifdef TEMP_MODEL_CHECK_WARN_ONLY + if(type != TempErrorType::model) { +#endif disable_heater(); hotendFanSetFullSpeed(); +#ifdef TEMP_MODEL_CHECK_WARN_ONLY + } +#endif // set the error state temp_error_state.error = true; diff --git a/Firmware/variants/1_75mm_MK3S-EINSy10a-E3Dv6full.h b/Firmware/variants/1_75mm_MK3S-EINSy10a-E3Dv6full.h index b53fe9f57..461d65448 100644 --- a/Firmware/variants/1_75mm_MK3S-EINSy10a-E3Dv6full.h +++ b/Firmware/variants/1_75mm_MK3S-EINSy10a-E3Dv6full.h @@ -419,6 +419,7 @@ // model-based temperature check #define TEMP_MODEL_CHECK 1 +#define TEMP_MODEL_CHECK_WARN_ONLY 1 /*------------------------------------ MOTOR CURRENT SETTINGS