Browse Source

Follow-up the PR #4278 (Fixups for PID_ADD_EXTRUSION_RATE and HOTENDS==1)

esenapaj 8 years ago
parent
commit
c2c8ab4698
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      Marlin/configuration_store.cpp
  2. 1
    1
      Marlin/temperature.cpp

+ 1
- 1
Marlin/configuration_store.cpp View File

@@ -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 View File

@@ -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));

Loading…
Cancel
Save