Преглед на файлове

Reduce code duplication in setTargetHotendSafe

Yuri D'Elia преди 3 години
родител
ревизия
ccaecc87aa
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      Firmware/temperature.h

+ 1 - 2
Firmware/temperature.h

@@ -149,8 +149,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);
+        setTargetHotend(celsius, extruder);
     }
 }