|
@@ -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
|
}
|