Prechádzať zdrojové kódy

Allow to continue printing with TEMP_MODEL_CHECK_WARN_ONLY for debugging

Yuri D'Elia 2 rokov pred
rodič
commit
a15f2807d9

+ 6 - 0
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;

+ 1 - 0
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