From bddb776ddb6aa8eb0eb9a15f701df24940b02b46 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 19 Apr 2019 21:43:49 -0500 Subject: [PATCH] Add chamber max-temp check Followup to #13756 --- Marlin/src/module/temperature.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Marlin/src/module/temperature.cpp b/Marlin/src/module/temperature.cpp index 4da8a377cd..b8ea8fd9bd 100644 --- a/Marlin/src/module/temperature.cpp +++ b/Marlin/src/module/temperature.cpp @@ -950,7 +950,7 @@ void Temperature::manage_heater() { HOTEND_LOOP() { if (degHotend(e) > temp_range[e].maxtemp) - temp_error(e, PSTR(MSG_T_THERMAL_RUNAWAY), TEMP_ERR_PSTR(MSG_THERMAL_RUNAWAY, e)); + _temp_error(e, PSTR(MSG_T_THERMAL_RUNAWAY), TEMP_ERR_PSTR(MSG_THERMAL_RUNAWAY, e)); #if HEATER_IDLE_HANDLER hotend_idle[e].update(ms); @@ -1076,6 +1076,9 @@ void Temperature::manage_heater() { #if HAS_HEATED_CHAMBER + if (degChamber() > CHAMBER_MAXTEMP) + temp_error(-2, PSTR(MSG_T_THERMAL_RUNAWAY), TEMP_ERR_PSTR(MSG_THERMAL_RUNAWAY, -2)); + #if WATCH_CHAMBER // Make sure temperature is increasing if (watch_chamber.elapsed(ms)) { // Time to check the chamber?