Parcourir la source

Add chamber max-temp check

Followup to #13756
Scott Lahteine il y a 6 ans
Parent
révision
bddb776ddb
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4
    1
      Marlin/src/module/temperature.cpp

+ 4
- 1
Marlin/src/module/temperature.cpp Voir le fichier

@@ -950,7 +950,7 @@ void Temperature::manage_heater() {
950 950
 
951 951
   HOTEND_LOOP() {
952 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 955
     #if HEATER_IDLE_HANDLER
956 956
       hotend_idle[e].update(ms);
@@ -1076,6 +1076,9 @@ void Temperature::manage_heater() {
1076 1076
 
1077 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 1082
       #if WATCH_CHAMBER
1080 1083
         // Make sure temperature is increasing
1081 1084
         if (watch_chamber.elapsed(ms)) {                  // Time to check the chamber?

Chargement…
Annuler
Enregistrer