Browse Source

Fix compile error with disabled PIDTEMP (#16108)

Antti Andreimann 5 years ago
parent
commit
b65ab21733
1 changed files with 10 additions and 5 deletions
  1. 10
    5
      Marlin/src/module/configuration_store.cpp

+ 10
- 5
Marlin/src/module/configuration_store.cpp View File

@@ -788,11 +788,16 @@ void MarlinSettings::postprocess() {
788 788
       _FIELD_TEST(hotendPID);
789 789
       HOTEND_LOOP() {
790 790
         PIDCF_t pidcf = {
791
-                       PID_PARAM(Kp, e),
792
-          unscalePID_i(PID_PARAM(Ki, e)),
793
-          unscalePID_d(PID_PARAM(Kd, e)),
794
-                       PID_PARAM(Kc, e),
795
-                       PID_PARAM(Kf, e)
791
+          #if DISABLED(PIDTEMP)
792
+            DUMMY_PID_VALUE, DUMMY_PID_VALUE, DUMMY_PID_VALUE,
793
+            DUMMY_PID_VALUE, DUMMY_PID_VALUE
794
+          #else
795
+                         PID_PARAM(Kp, e),
796
+            unscalePID_i(PID_PARAM(Ki, e)),
797
+            unscalePID_d(PID_PARAM(Kd, e)),
798
+                         PID_PARAM(Kc, e),
799
+                         PID_PARAM(Kf, e)
800
+          #endif
796 801
         };
797 802
         EEPROM_WRITE(pidcf);
798 803
       }

Loading…
Cancel
Save