Change SERIAL_PROTOCOL to SERIAL_PROTOCOLPGM in a few lines
Saves 12 bytes of SRAM but increases flash use by 12 bytes.
This commit is contained in:
parent
97c371e5e8
commit
4a02ff3de8
1 changed files with 7 additions and 7 deletions
|
@ -7786,14 +7786,14 @@ Sigma_Exit:
|
||||||
|
|
||||||
updatePID();
|
updatePID();
|
||||||
SERIAL_PROTOCOLRPGM(MSG_OK);
|
SERIAL_PROTOCOLRPGM(MSG_OK);
|
||||||
SERIAL_PROTOCOL(" p:");
|
SERIAL_PROTOCOLPGM(" p:");
|
||||||
SERIAL_PROTOCOL(cs.Kp);
|
SERIAL_PROTOCOL(cs.Kp);
|
||||||
SERIAL_PROTOCOL(" i:");
|
SERIAL_PROTOCOLPGM(" i:");
|
||||||
SERIAL_PROTOCOL(unscalePID_i(cs.Ki));
|
SERIAL_PROTOCOL(unscalePID_i(cs.Ki));
|
||||||
SERIAL_PROTOCOL(" d:");
|
SERIAL_PROTOCOLPGM(" d:");
|
||||||
SERIAL_PROTOCOL(unscalePID_d(cs.Kd));
|
SERIAL_PROTOCOL(unscalePID_d(cs.Kd));
|
||||||
#ifdef PID_ADD_EXTRUSION_RATE
|
#ifdef PID_ADD_EXTRUSION_RATE
|
||||||
SERIAL_PROTOCOL(" c:");
|
SERIAL_PROTOCOLPGM(" c:");
|
||||||
//Kc does not have scaling applied above, or in resetting defaults
|
//Kc does not have scaling applied above, or in resetting defaults
|
||||||
SERIAL_PROTOCOL(Kc);
|
SERIAL_PROTOCOL(Kc);
|
||||||
#endif
|
#endif
|
||||||
|
@ -7824,11 +7824,11 @@ Sigma_Exit:
|
||||||
|
|
||||||
updatePID();
|
updatePID();
|
||||||
SERIAL_PROTOCOLRPGM(MSG_OK);
|
SERIAL_PROTOCOLRPGM(MSG_OK);
|
||||||
SERIAL_PROTOCOL(" p:");
|
SERIAL_PROTOCOLPGM(" p:");
|
||||||
SERIAL_PROTOCOL(cs.bedKp);
|
SERIAL_PROTOCOL(cs.bedKp);
|
||||||
SERIAL_PROTOCOL(" i:");
|
SERIAL_PROTOCOLPGM(" i:");
|
||||||
SERIAL_PROTOCOL(unscalePID_i(cs.bedKi));
|
SERIAL_PROTOCOL(unscalePID_i(cs.bedKi));
|
||||||
SERIAL_PROTOCOL(" d:");
|
SERIAL_PROTOCOLPGM(" d:");
|
||||||
SERIAL_PROTOCOLLN(unscalePID_d(cs.bedKd));
|
SERIAL_PROTOCOLLN(unscalePID_d(cs.bedKd));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue