Browse Source

Add chamber max-temp check

Followup to #13756
Scott Lahteine 6 years ago
parent
commit
bddb776ddb
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      Marlin/src/module/temperature.cpp

+ 4
- 1
Marlin/src/module/temperature.cpp View File

950
 
950
 
951
   HOTEND_LOOP() {
951
   HOTEND_LOOP() {
952
     if (degHotend(e) > temp_range[e].maxtemp)
952
     if (degHotend(e) > temp_range[e].maxtemp)
953
-      temp_error(e, PSTR(MSG_T_THERMAL_RUNAWAY), TEMP_ERR_PSTR(MSG_THERMAL_RUNAWAY, e));
953
+      _temp_error(e, PSTR(MSG_T_THERMAL_RUNAWAY), TEMP_ERR_PSTR(MSG_THERMAL_RUNAWAY, e));
954
 
954
 
955
     #if HEATER_IDLE_HANDLER
955
     #if HEATER_IDLE_HANDLER
956
       hotend_idle[e].update(ms);
956
       hotend_idle[e].update(ms);
1076
 
1076
 
1077
     #if HAS_HEATED_CHAMBER
1077
     #if HAS_HEATED_CHAMBER
1078
 
1078
 
1079
+      if (degChamber() > CHAMBER_MAXTEMP)
1080
+        temp_error(-2, PSTR(MSG_T_THERMAL_RUNAWAY), TEMP_ERR_PSTR(MSG_THERMAL_RUNAWAY, -2));
1081
+
1079
       #if WATCH_CHAMBER
1082
       #if WATCH_CHAMBER
1080
         // Make sure temperature is increasing
1083
         // Make sure temperature is increasing
1081
         if (watch_chamber.elapsed(ms)) {                  // Time to check the chamber?
1084
         if (watch_chamber.elapsed(ms)) {                  // Time to check the chamber?

Loading…
Cancel
Save