Procházet zdrojové kódy

setTargetHotendSafe change

PavelSindler před 6 roky
rodič
revize
efdd3bc998
1 změnil soubory, kde provedl 1 přidání a 4 odebrání
  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)