Explorar o código

setTargetHotendSafe change

PavelSindler %!s(int64=6) %!d(string=hai) anos
pai
achega
efdd3bc998
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  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)