Browse Source

Save some RAM in MBL's G29

pull/1/head
Scott Lahteine 8 years ago
parent
commit
2783dcb4cc
  1. 10
      Marlin/Marlin_main.cpp

10
Marlin/Marlin_main.cpp

@ -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;

Loading…
Cancel
Save