parent
a525cc06c1
commit
af80653f3f
|
@ -2964,14 +2964,15 @@ void MarlinSettings::reset() {
|
||||||
#if HAS_PID_HEATING
|
#if HAS_PID_HEATING
|
||||||
|
|
||||||
CONFIG_ECHO_HEADING("PID settings:");
|
CONFIG_ECHO_HEADING("PID settings:");
|
||||||
|
|
||||||
#if ENABLED(PIDTEMP)
|
#if ENABLED(PIDTEMP)
|
||||||
#if HOTENDS > 1
|
|
||||||
if (forReplay) {
|
|
||||||
HOTEND_LOOP() {
|
HOTEND_LOOP() {
|
||||||
CONFIG_ECHO_START();
|
CONFIG_ECHO_START();
|
||||||
SERIAL_ECHOPAIR(
|
SERIAL_ECHOPAIR(" M301"
|
||||||
" M301 E", e
|
#if HOTENDS > 1 && ENABLED(PID_PARAMS_PER_HOTEND)
|
||||||
, " P", PID_PARAM(Kp, e)
|
" E", e,
|
||||||
|
#endif
|
||||||
|
" P", PID_PARAM(Kp, e)
|
||||||
, " I", unscalePID_i(PID_PARAM(Ki, e))
|
, " I", unscalePID_i(PID_PARAM(Ki, e))
|
||||||
, " D", unscalePID_d(PID_PARAM(Kd, e))
|
, " D", unscalePID_d(PID_PARAM(Kd, e))
|
||||||
);
|
);
|
||||||
|
@ -2981,22 +2982,6 @@ void MarlinSettings::reset() {
|
||||||
#endif
|
#endif
|
||||||
SERIAL_EOL();
|
SERIAL_EOL();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
|
||||||
#endif // HOTENDS > 1
|
|
||||||
// !forReplay || HOTENDS == 1
|
|
||||||
{
|
|
||||||
CONFIG_ECHO_START();
|
|
||||||
SERIAL_ECHOLNPAIR(
|
|
||||||
" M301 P", PID_PARAM(Kp, 0) // for compatibility with hosts, only echo values for E0
|
|
||||||
, " I", unscalePID_i(PID_PARAM(Ki, 0))
|
|
||||||
, " D", unscalePID_d(PID_PARAM(Kd, 0))
|
|
||||||
#if ENABLED(PID_EXTRUSION_SCALING)
|
|
||||||
, " C", PID_PARAM(Kc, 0)
|
|
||||||
, " L", thermalManager.lpq_len
|
|
||||||
#endif
|
|
||||||
);
|
|
||||||
}
|
|
||||||
#endif // PIDTEMP
|
#endif // PIDTEMP
|
||||||
|
|
||||||
#if ENABLED(PIDTEMPBED)
|
#if ENABLED(PIDTEMPBED)
|
||||||
|
|
Loading…
Reference in a new issue