|
|
@ -1005,9 +1005,8 @@ void tp_init() {
|
|
|
|
* their target temperature by a configurable margin.
|
|
|
|
* their target temperature by a configurable margin.
|
|
|
|
* This is called when the temperature is set. (M104, M109)
|
|
|
|
* This is called when the temperature is set. (M104, M109)
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void start_watching_heaters() {
|
|
|
|
void start_watching_heater(int e) {
|
|
|
|
millis_t ms = millis() + WATCH_TEMP_PERIOD;
|
|
|
|
millis_t ms = millis() + WATCH_TEMP_PERIOD;
|
|
|
|
for (int e = 0; e < EXTRUDERS; e++) {
|
|
|
|
|
|
|
|
if (degHotend(e) < degTargetHotend(e) - (WATCH_TEMP_INCREASE * 2)) {
|
|
|
|
if (degHotend(e) < degTargetHotend(e) - (WATCH_TEMP_INCREASE * 2)) {
|
|
|
|
watch_target_temp[e] = degHotend(e) + WATCH_TEMP_INCREASE;
|
|
|
|
watch_target_temp[e] = degHotend(e) + WATCH_TEMP_INCREASE;
|
|
|
|
watch_heater_next_ms[e] = ms;
|
|
|
|
watch_heater_next_ms[e] = ms;
|
|
|
@ -1015,7 +1014,6 @@ void tp_init() {
|
|
|
|
else
|
|
|
|
else
|
|
|
|
watch_heater_next_ms[e] = 0;
|
|
|
|
watch_heater_next_ms[e] = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if HAS_HEATER_THERMAL_PROTECTION || HAS_BED_THERMAL_PROTECTION
|
|
|
|
#if HAS_HEATER_THERMAL_PROTECTION || HAS_BED_THERMAL_PROTECTION
|
|
|
|