Add MSG_THERMAL_RUNAWAY_BED (#9695)
This commit is contained in:
parent
fc709c28b5
commit
016bd86c28
@ -789,6 +789,9 @@
|
|||||||
#ifndef MSG_THERMAL_RUNAWAY
|
#ifndef MSG_THERMAL_RUNAWAY
|
||||||
#define MSG_THERMAL_RUNAWAY _UxGT("THERMAL RUNAWAY")
|
#define MSG_THERMAL_RUNAWAY _UxGT("THERMAL RUNAWAY")
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef MSG_THERMAL_RUNAWAY_BED
|
||||||
|
#define MSG_THERMAL_RUNAWAY_BED _UxGT("BED THERMAL RUNAWAY")
|
||||||
|
#endif
|
||||||
#ifndef MSG_ERR_MAXTEMP
|
#ifndef MSG_ERR_MAXTEMP
|
||||||
#define MSG_ERR_MAXTEMP _UxGT("Err: MAXTEMP")
|
#define MSG_ERR_MAXTEMP _UxGT("Err: MAXTEMP")
|
||||||
#endif
|
#endif
|
||||||
|
@ -433,7 +433,9 @@ uint8_t Temperature::soft_pwm_amount[HOTENDS],
|
|||||||
_temp_error(hotend, PSTR(MSG_T_HEATING_FAILED), PSTR(MSG_HEATING_FAILED_LCD));
|
_temp_error(hotend, PSTR(MSG_T_HEATING_FAILED), PSTR(MSG_HEATING_FAILED_LCD));
|
||||||
}
|
}
|
||||||
else if (current < target - (MAX_OVERSHOOT_PID_AUTOTUNE)) // Heated, then temperature fell too far?
|
else if (current < target - (MAX_OVERSHOOT_PID_AUTOTUNE)) // Heated, then temperature fell too far?
|
||||||
_temp_error(hotend, PSTR(MSG_T_THERMAL_RUNAWAY), PSTR(MSG_THERMAL_RUNAWAY));
|
_temp_error(hotend, PSTR(MSG_T_THERMAL_RUNAWAY),
|
||||||
|
hotend >= 0 ? PSTR(MSG_THERMAL_RUNAWAY) : PSTR(MSG_THERMAL_RUNAWAY_BED)
|
||||||
|
);
|
||||||
#endif
|
#endif
|
||||||
} // every 2 seconds
|
} // every 2 seconds
|
||||||
|
|
||||||
@ -465,7 +467,7 @@ uint8_t Temperature::soft_pwm_amount[HOTENDS],
|
|||||||
bedKp = workKp; \
|
bedKp = workKp; \
|
||||||
bedKi = scalePID_i(workKi); \
|
bedKi = scalePID_i(workKi); \
|
||||||
bedKd = scalePID_d(workKd); \
|
bedKd = scalePID_d(workKd); \
|
||||||
}while(0)
|
}while(0)
|
||||||
|
|
||||||
#define _SET_EXTRUDER_PID() do { \
|
#define _SET_EXTRUDER_PID() do { \
|
||||||
PID_PARAM(Kp, hotend) = workKp; \
|
PID_PARAM(Kp, hotend) = workKp; \
|
||||||
@ -1410,7 +1412,9 @@ void Temperature::init() {
|
|||||||
else if (PENDING(millis(), *timer)) break;
|
else if (PENDING(millis(), *timer)) break;
|
||||||
*state = TRRunaway;
|
*state = TRRunaway;
|
||||||
case TRRunaway:
|
case TRRunaway:
|
||||||
_temp_error(heater_id, PSTR(MSG_T_THERMAL_RUNAWAY), PSTR(MSG_THERMAL_RUNAWAY));
|
_temp_error(heater_id, PSTR(MSG_T_THERMAL_RUNAWAY),
|
||||||
|
heater_id >= 0 ? PSTR(MSG_THERMAL_RUNAWAY) : PSTR(MSG_THERMAL_RUNAWAY_BED)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user