Add the move_z_after_probing() functionality to UBL's G29 J

This commit is contained in:
Roxy-3D 2018-06-21 13:26:20 -05:00 committed by GitHub
parent 7a84b03796
commit 1d7dd0edfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1562,7 +1562,12 @@
incremental_LSF(&lsf_results, PROBE_PT_3_X, PROBE_PT_3_Y, measured_z); incremental_LSF(&lsf_results, PROBE_PT_3_X, PROBE_PT_3_Y, measured_z);
} }
} }
STOW_PROBE();
#ifdef Z_AFTER_PROBING
move_z_after_probing();
#endif
if (abort_flag) { if (abort_flag) {
SERIAL_ECHOPGM("?Error probing point. Aborting operation.\n"); SERIAL_ECHOPGM("?Error probing point. Aborting operation.\n");
return; return;
@ -1618,9 +1623,12 @@
zig_zag ^= true; zig_zag ^= true;
} }
STOW_PROBE();
} }
STOW_PROBE();
#ifdef Z_AFTER_PROBING
move_z_after_probing();
#endif
if (abort_flag || finish_incremental_LSF(&lsf_results)) { if (abort_flag || finish_incremental_LSF(&lsf_results)) {
SERIAL_ECHOPGM("Could not complete LSF!"); SERIAL_ECHOPGM("Could not complete LSF!");
return; return;