Bläddra i källkod

Merge pull request #4291 from esenapaj/Follow-up-the-PR-#4278

Follow-up the PR #4278 (Fixups for PID_ADD_EXTRUSION_RATE and HOTENDS==1)
Scott Lahteine 8 år sedan
förälder
incheckning
ed89c71e53
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1
    1
      Marlin/configuration_store.cpp
  2. 1
    1
      Marlin/temperature.cpp

+ 1
- 1
Marlin/configuration_store.cpp Visa fil

@@ -617,7 +617,7 @@ void Config_ResetDefault() {
617 617
   #endif
618 618
 
619 619
   #if ENABLED(PIDTEMP)
620
-    #if ENABLED(PID_PARAMS_PER_HOTEND)
620
+    #if ENABLED(PID_PARAMS_PER_HOTEND) && HOTENDS > 1
621 621
       HOTEND_LOOP()
622 622
     #else
623 623
       int e = 0; UNUSED(e); // only need to write once

+ 1
- 1
Marlin/temperature.cpp Visa fil

@@ -68,7 +68,7 @@ unsigned char Temperature::soft_pwm_bed;
68 68
 #endif
69 69
 
70 70
 #if ENABLED(PIDTEMP)
71
-  #if ENABLED(PID_PARAMS_PER_HOTEND)
71
+  #if ENABLED(PID_PARAMS_PER_HOTEND) && HOTENDS > 1
72 72
     float Temperature::Kp[HOTENDS] = ARRAY_BY_HOTENDS1(DEFAULT_Kp),
73 73
           Temperature::Ki[HOTENDS] = ARRAY_BY_HOTENDS1((DEFAULT_Ki) * (PID_dT)),
74 74
           Temperature::Kd[HOTENDS] = ARRAY_BY_HOTENDS1((DEFAULT_Kd) / (PID_dT));

Laddar…
Avbryt
Spara