diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index d3656a3c38..7527eb5978 100755 --- a/Marlin/Marlin_main.cpp +++ b/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;