Selaa lähdekoodia

setTargetHotendSafe change

PavelSindler 6 vuotta sitten
vanhempi
commit
efdd3bc998
1 muutettua tiedostoa jossa 1 lisäystä ja 4 poistoa
  1. 1 4
      Firmware/temperature.h

+ 1 - 4
Firmware/temperature.h

@@ -133,10 +133,7 @@ FORCE_INLINE void setTargetHotend(const float &celsius, uint8_t extruder) {
 
 static inline void setTargetHotendSafe(const float &celsius, uint8_t extruder)
 {
-    if (extruder<EXTRUDERS) {
-      target_temperature[extruder] = celsius;
-      resetPID[extruder];
-    }
+    if (extruder<EXTRUDERS) target_temperature[extruder] = celsius;
 }
 
 static inline void setAllTargetHotends(const float &celsius)