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