1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-28 06:21:31 +00:00

Save some RAM in MBL's G29

This commit is contained in:
Scott Lahteine 2016-08-22 12:46:08 -05:00
parent 4f5a8c05d5
commit 2783dcb4cc

View File

@ -3623,9 +3623,10 @@ inline void gcode_G28() {
}
}
else {
SERIAL_PROTOCOLLNPGM("X not entered.");
SERIAL_CHAR('X'); SERIAL_PROTOCOLLNPGM(" not entered.");
return;
}
if (code_seen('Y')) {
py = code_value_int() - 1;
if (py < 0 || py >= MESH_NUM_Y_POINTS) {
@ -3634,14 +3635,15 @@ inline void gcode_G28() {
}
}
else {
SERIAL_PROTOCOLLNPGM("Y not entered.");
SERIAL_CHAR('Y'); SERIAL_PROTOCOLLNPGM(" not entered.");
return;
}
if (code_seen('Z')) {
mbl.z_values[py][px] = code_value_axis_units(Z_AXIS);
}
else {
SERIAL_PROTOCOLLNPGM("Z not entered.");
SERIAL_CHAR('Z'); SERIAL_PROTOCOLLNPGM(" not entered.");
return;
}
break;
@ -3651,7 +3653,7 @@ inline void gcode_G28() {
mbl.z_offset = code_value_axis_units(Z_AXIS);
}
else {
SERIAL_PROTOCOLLNPGM("Z not entered.");
SERIAL_CHAR('Z'); SERIAL_PROTOCOLLNPGM(" not entered.");
return;
}
break;