|
@@ -1005,16 +1005,14 @@ void tp_init() {
|
1005
|
1005
|
* their target temperature by a configurable margin.
|
1006
|
1006
|
* This is called when the temperature is set. (M104, M109)
|
1007
|
1007
|
*/
|
1008
|
|
- void start_watching_heaters() {
|
1009
|
|
- millis_t ms = millis() + WATCH_TEMP_PERIOD;
|
1010
|
|
- for (int e = 0; e < EXTRUDERS; e++) {
|
1011
|
|
- if (degHotend(e) < degTargetHotend(e) - (WATCH_TEMP_INCREASE * 2)) {
|
1012
|
|
- watch_target_temp[e] = degHotend(e) + WATCH_TEMP_INCREASE;
|
1013
|
|
- watch_heater_next_ms[e] = ms;
|
1014
|
|
- }
|
1015
|
|
- else
|
1016
|
|
- watch_heater_next_ms[e] = 0;
|
1017
|
|
- }
|
|
1008
|
+ void start_watching_heater(int e) {
|
|
1009
|
+ millis_t ms = millis() + WATCH_TEMP_PERIOD;
|
|
1010
|
+ if (degHotend(e) < degTargetHotend(e) - (WATCH_TEMP_INCREASE * 2)) {
|
|
1011
|
+ watch_target_temp[e] = degHotend(e) + WATCH_TEMP_INCREASE;
|
|
1012
|
+ watch_heater_next_ms[e] = ms;
|
|
1013
|
+ }
|
|
1014
|
+ else
|
|
1015
|
+ watch_heater_next_ms[e] = 0;
|
1018
|
1016
|
}
|
1019
|
1017
|
#endif
|
1020
|
1018
|
|