Browse Source

Fix compile error with disabled PIDTEMP (#16108)

pull/1/head
Antti Andreimann 5 years ago
committed by Scott Lahteine
parent
commit
b65ab21733
  1. 5
      Marlin/src/module/configuration_store.cpp

5
Marlin/src/module/configuration_store.cpp

@ -788,11 +788,16 @@ void MarlinSettings::postprocess() {
_FIELD_TEST(hotendPID); _FIELD_TEST(hotendPID);
HOTEND_LOOP() { HOTEND_LOOP() {
PIDCF_t pidcf = { PIDCF_t pidcf = {
#if DISABLED(PIDTEMP)
DUMMY_PID_VALUE, DUMMY_PID_VALUE, DUMMY_PID_VALUE,
DUMMY_PID_VALUE, DUMMY_PID_VALUE
#else
PID_PARAM(Kp, e), PID_PARAM(Kp, e),
unscalePID_i(PID_PARAM(Ki, e)), unscalePID_i(PID_PARAM(Ki, e)),
unscalePID_d(PID_PARAM(Kd, e)), unscalePID_d(PID_PARAM(Kd, e)),
PID_PARAM(Kc, e), PID_PARAM(Kc, e),
PID_PARAM(Kf, e) PID_PARAM(Kf, e)
#endif
}; };
EEPROM_WRITE(pidcf); EEPROM_WRITE(pidcf);
} }

Loading…
Cancel
Save