Allow to continue printing with TEMP_MODEL_CHECK_WARN_ONLY for debugging

This commit is contained in:
Yuri D'Elia 2022-05-26 20:19:16 +02:00
parent 929843e295
commit a15f2807d9
2 changed files with 7 additions and 0 deletions

View file

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

View file

@ -419,6 +419,7 @@
// model-based temperature check
#define TEMP_MODEL_CHECK 1
#define TEMP_MODEL_CHECK_WARN_ONLY 1
/*------------------------------------
MOTOR CURRENT SETTINGS