Skip to content

Commit 4a02ff3

Browse files
gudnimgleptun
authored andcommitted
Change SERIAL_PROTOCOL to SERIAL_PROTOCOLPGM in a few lines
Saves 12 bytes of SRAM but increases flash use by 12 bytes.
1 parent 97c371e commit 4a02ff3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Firmware/Marlin_main.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -7786,14 +7786,14 @@ SERIAL_PROTOCOLPGM("\n\n");
77867786

77877787
updatePID();
77887788
SERIAL_PROTOCOLRPGM(MSG_OK);
7789-
SERIAL_PROTOCOL(" p:");
7789+
SERIAL_PROTOCOLPGM(" p:");
77907790
SERIAL_PROTOCOL(cs.Kp);
7791-
SERIAL_PROTOCOL(" i:");
7791+
SERIAL_PROTOCOLPGM(" i:");
77927792
SERIAL_PROTOCOL(unscalePID_i(cs.Ki));
7793-
SERIAL_PROTOCOL(" d:");
7793+
SERIAL_PROTOCOLPGM(" d:");
77947794
SERIAL_PROTOCOL(unscalePID_d(cs.Kd));
77957795
#ifdef PID_ADD_EXTRUSION_RATE
7796-
SERIAL_PROTOCOL(" c:");
7796+
SERIAL_PROTOCOLPGM(" c:");
77977797
//Kc does not have scaling applied above, or in resetting defaults
77987798
SERIAL_PROTOCOL(Kc);
77997799
#endif
@@ -7824,11 +7824,11 @@ SERIAL_PROTOCOLPGM("\n\n");
78247824

78257825
updatePID();
78267826
SERIAL_PROTOCOLRPGM(MSG_OK);
7827-
SERIAL_PROTOCOL(" p:");
7827+
SERIAL_PROTOCOLPGM(" p:");
78287828
SERIAL_PROTOCOL(cs.bedKp);
7829-
SERIAL_PROTOCOL(" i:");
7829+
SERIAL_PROTOCOLPGM(" i:");
78307830
SERIAL_PROTOCOL(unscalePID_i(cs.bedKi));
7831-
SERIAL_PROTOCOL(" d:");
7831+
SERIAL_PROTOCOLPGM(" d:");
78327832
SERIAL_PROTOCOLLN(unscalePID_d(cs.bedKd));
78337833
}
78347834
break;

0 commit comments

Comments
 (0)