|
|
@ -2045,6 +2045,9 @@ inline void gcode_G28() {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int ix, iy;
|
|
|
|
|
|
|
|
float z;
|
|
|
|
|
|
|
|
|
|
|
|
switch(state) {
|
|
|
|
switch(state) {
|
|
|
|
case MeshReport:
|
|
|
|
case MeshReport:
|
|
|
|
if (mbl.active) {
|
|
|
|
if (mbl.active) {
|
|
|
@ -2078,7 +2081,6 @@ inline void gcode_G28() {
|
|
|
|
SERIAL_PROTOCOLLNPGM("Start mesh probing with \"G29 S1\" first.");
|
|
|
|
SERIAL_PROTOCOLLNPGM("Start mesh probing with \"G29 S1\" first.");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
int ix, iy;
|
|
|
|
|
|
|
|
if (probe_point == 0) {
|
|
|
|
if (probe_point == 0) {
|
|
|
|
// Set Z to a positive value before recording the first Z.
|
|
|
|
// Set Z to a positive value before recording the first Z.
|
|
|
|
current_position[Z_AXIS] = MESH_HOME_SEARCH_Z;
|
|
|
|
current_position[Z_AXIS] = MESH_HOME_SEARCH_Z;
|
|
|
@ -2115,8 +2117,6 @@ inline void gcode_G28() {
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case MeshSet:
|
|
|
|
case MeshSet:
|
|
|
|
int ix, iy;
|
|
|
|
|
|
|
|
float z;
|
|
|
|
|
|
|
|
if (code_seen('X') || code_seen('x')) {
|
|
|
|
if (code_seen('X') || code_seen('x')) {
|
|
|
|
ix = code_value_long()-1;
|
|
|
|
ix = code_value_long()-1;
|
|
|
|
if (ix < 0 || ix >= MESH_NUM_X_POINTS) {
|
|
|
|
if (ix < 0 || ix >= MESH_NUM_X_POINTS) {
|
|
|
|