|
@@ -104,12 +104,12 @@ uint8_t Temperature::soft_pwm_bed;
|
104
|
104
|
volatile int Temperature::babystepsTodo[XYZ] = { 0 };
|
105
|
105
|
#endif
|
106
|
106
|
|
107
|
|
-#if ENABLED(THERMAL_PROTECTION_HOTENDS) && WATCH_TEMP_PERIOD > 0
|
|
107
|
+#if WATCH_HOTENDS
|
108
|
108
|
int Temperature::watch_target_temp[HOTENDS] = { 0 };
|
109
|
109
|
millis_t Temperature::watch_heater_next_ms[HOTENDS] = { 0 };
|
110
|
110
|
#endif
|
111
|
111
|
|
112
|
|
-#if ENABLED(THERMAL_PROTECTION_BED) && WATCH_BED_TEMP_PERIOD > 0
|
|
112
|
+#if WATCH_THE_BED
|
113
|
113
|
int Temperature::watch_target_bed_temp = 0;
|
114
|
114
|
millis_t Temperature::watch_bed_next_ms = 0;
|
115
|
115
|
#endif
|
|
@@ -690,7 +690,7 @@ void Temperature::manage_heater() {
|
690
|
690
|
if (current_temperature[0] < max(HEATER_0_MINTEMP, MAX6675_TMIN + 0.01)) min_temp_error(0);
|
691
|
691
|
#endif
|
692
|
692
|
|
693
|
|
- #if (ENABLED(THERMAL_PROTECTION_HOTENDS) && WATCH_TEMP_PERIOD > 0) || (ENABLED(THERMAL_PROTECTION_BED) && WATCH_BED_TEMP_PERIOD > 0) || DISABLED(PIDTEMPBED) || HAS_AUTO_FAN
|
|
693
|
+ #if WATCH_HOTENDS || WATCH_THE_BED || DISABLED(PIDTEMPBED) || HAS_AUTO_FAN
|
694
|
694
|
millis_t ms = millis();
|
695
|
695
|
#endif
|
696
|
696
|
|
|
@@ -707,7 +707,7 @@ void Temperature::manage_heater() {
|
707
|
707
|
soft_pwm[e] = (current_temperature[e] > minttemp[e] || is_preheating(e)) && current_temperature[e] < maxttemp[e] ? (int)pid_output >> 1 : 0;
|
708
|
708
|
|
709
|
709
|
// Check if the temperature is failing to increase
|
710
|
|
- #if ENABLED(THERMAL_PROTECTION_HOTENDS) && WATCH_TEMP_PERIOD > 0
|
|
710
|
+ #if WATCH_HOTENDS
|
711
|
711
|
|
712
|
712
|
// Is it time to check this extruder's heater?
|
713
|
713
|
if (watch_heater_next_ms[e] && ELAPSED(ms, watch_heater_next_ms[e])) {
|
|
@@ -725,7 +725,7 @@ void Temperature::manage_heater() {
|
725
|
725
|
#endif // THERMAL_PROTECTION_HOTENDS
|
726
|
726
|
|
727
|
727
|
// Check if the temperature is failing to increase
|
728
|
|
- #if ENABLED(THERMAL_PROTECTION_BED) && WATCH_BED_TEMP_PERIOD > 0
|
|
728
|
+ #if WATCH_THE_BED
|
729
|
729
|
|
730
|
730
|
// Is it time to check the bed?
|
731
|
731
|
if (watch_bed_next_ms && ELAPSED(ms, watch_bed_next_ms)) {
|
|
@@ -1157,7 +1157,7 @@ void Temperature::init() {
|
1157
|
1157
|
#endif //BED_MAXTEMP
|
1158
|
1158
|
}
|
1159
|
1159
|
|
1160
|
|
-#if ENABLED(THERMAL_PROTECTION_HOTENDS) && WATCH_TEMP_PERIOD > 0
|
|
1160
|
+#if WATCH_HOTENDS
|
1161
|
1161
|
/**
|
1162
|
1162
|
* Start Heating Sanity Check for hotends that are below
|
1163
|
1163
|
* their target temperature by a configurable margin.
|
|
@@ -1176,7 +1176,7 @@ void Temperature::init() {
|
1176
|
1176
|
}
|
1177
|
1177
|
#endif
|
1178
|
1178
|
|
1179
|
|
-#if ENABLED(THERMAL_PROTECTION_BED) && WATCH_BED_TEMP_PERIOD > 0
|
|
1179
|
+#if WATCH_THE_BED
|
1180
|
1180
|
/**
|
1181
|
1181
|
* Start Heating Sanity Check for hotends that are below
|
1182
|
1182
|
* their target temperature by a configurable margin.
|