Skip to content

Commit

Permalink
Fix compile error with disabled PIDTEMP (MarlinFirmware#16108)
Browse files Browse the repository at this point in the history
  • Loading branch information
anttix authored and griehsler committed Jan 30, 2020
1 parent c8e2910 commit f05e59f
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Marlin/src/module/configuration_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -788,11 +788,16 @@ void MarlinSettings::postprocess() {
_FIELD_TEST(hotendPID);
HOTEND_LOOP() {
PIDCF_t pidcf = {
PID_PARAM(Kp, e),
unscalePID_i(PID_PARAM(Ki, e)),
unscalePID_d(PID_PARAM(Kd, e)),
PID_PARAM(Kc, e),
PID_PARAM(Kf, e)
#if DISABLED(PIDTEMP)
DUMMY_PID_VALUE, DUMMY_PID_VALUE, DUMMY_PID_VALUE,
DUMMY_PID_VALUE, DUMMY_PID_VALUE
#else
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);
}
Expand Down

0 comments on commit f05e59f

Please sign in to comment.