Fix compile error with disabled PIDTEMP (#16108)
This commit is contained in:
parent
37df0c1f22
commit
b65ab21733
@ -788,11 +788,16 @@ void MarlinSettings::postprocess() {
|
|||||||
_FIELD_TEST(hotendPID);
|
_FIELD_TEST(hotendPID);
|
||||||
HOTEND_LOOP() {
|
HOTEND_LOOP() {
|
||||||
PIDCF_t pidcf = {
|
PIDCF_t pidcf = {
|
||||||
PID_PARAM(Kp, e),
|
#if DISABLED(PIDTEMP)
|
||||||
unscalePID_i(PID_PARAM(Ki, e)),
|
DUMMY_PID_VALUE, DUMMY_PID_VALUE, DUMMY_PID_VALUE,
|
||||||
unscalePID_d(PID_PARAM(Kd, e)),
|
DUMMY_PID_VALUE, DUMMY_PID_VALUE
|
||||||
PID_PARAM(Kc, e),
|
#else
|
||||||
PID_PARAM(Kf, e)
|
PID_PARAM(Kp, e),
|
||||||
|
unscalePID_i(PID_PARAM(Ki, e)),
|
||||||
|
unscalePID_d(PID_PARAM(Kd, e)),
|
||||||
|
PID_PARAM(Kc, e),
|
||||||
|
PID_PARAM(Kf, e)
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
EEPROM_WRITE(pidcf);
|
EEPROM_WRITE(pidcf);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user