Allow to continue printing with TEMP_MODEL_CHECK_WARN_ONLY for debugging
This commit is contained in:
parent
929843e295
commit
a15f2807d9
2 changed files with 7 additions and 0 deletions
Firmware
|
@ -467,8 +467,14 @@ volatile static union
|
||||||
void set_temp_error(TempErrorSource source, uint8_t index, TempErrorType type)
|
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
|
// 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();
|
disable_heater();
|
||||||
hotendFanSetFullSpeed();
|
hotendFanSetFullSpeed();
|
||||||
|
#ifdef TEMP_MODEL_CHECK_WARN_ONLY
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// set the error state
|
// set the error state
|
||||||
temp_error_state.error = true;
|
temp_error_state.error = true;
|
||||||
|
|
|
@ -419,6 +419,7 @@
|
||||||
|
|
||||||
// model-based temperature check
|
// model-based temperature check
|
||||||
#define TEMP_MODEL_CHECK 1
|
#define TEMP_MODEL_CHECK 1
|
||||||
|
#define TEMP_MODEL_CHECK_WARN_ONLY 1
|
||||||
|
|
||||||
/*------------------------------------
|
/*------------------------------------
|
||||||
MOTOR CURRENT SETTINGS
|
MOTOR CURRENT SETTINGS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue