Browse Source

Changed dependency of start_watching_heater() in setTargetHotend() to THERMAL_PROTECTION_HOTENDS

AnHardt 10 years ago
parent
commit
9b0fa9c309
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      Marlin/temperature.h

+ 5
- 5
Marlin/temperature.h View File

96
 FORCE_INLINE float degTargetHotend(uint8_t extruder) { return target_temperature[extruder]; }
96
 FORCE_INLINE float degTargetHotend(uint8_t extruder) { return target_temperature[extruder]; }
97
 FORCE_INLINE float degTargetBed() { return target_temperature_bed; }
97
 FORCE_INLINE float degTargetBed() { return target_temperature_bed; }
98
 
98
 
99
+#ifdef THERMAL_PROTECTION_HOTENDS
100
+  void start_watching_heater(int e=0);
101
+#endif
102
+
99
 FORCE_INLINE void setTargetHotend(const float &celsius, uint8_t extruder) {
103
 FORCE_INLINE void setTargetHotend(const float &celsius, uint8_t extruder) {
100
   target_temperature[extruder] = celsius;
104
   target_temperature[extruder] = celsius;
101
-  #ifdef WATCH_TEMP_PERIOD
105
+  #ifdef THERMAL_PROTECTION_HOTENDS
102
     start_watching_heater(extruder);
106
     start_watching_heater(extruder);
103
   #endif
107
   #endif
104
 }
108
 }
142
 void setExtruderAutoFanState(int pin, bool state);
146
 void setExtruderAutoFanState(int pin, bool state);
143
 void checkExtruderAutoFans();
147
 void checkExtruderAutoFans();
144
 
148
 
145
-#ifdef THERMAL_PROTECTION_HOTENDS
146
-  void start_watching_heater(int e=0);
147
-#endif
148
-
149
 FORCE_INLINE void autotempShutdown() {
149
 FORCE_INLINE void autotempShutdown() {
150
   #ifdef AUTOTEMP
150
   #ifdef AUTOTEMP
151
     if (autotemp_enabled) {
151
     if (autotemp_enabled) {

Loading…
Cancel
Save