Consolidate probe clearance, add section debug (#18576)

* Better section / function log
* Add do_z_clearance motion function
This commit is contained in:
Scott Lahteine
2020-07-08 21:44:21 -05:00
committed by GitHub
parent 0eab9fc08c
commit 73fc0778b8
18 changed files with 132 additions and 131 deletions

View File

@@ -57,9 +57,8 @@ void GcodeSuite::G30() {
restore_feedrate_and_scaling();
#ifdef Z_AFTER_PROBING
if (raise_after == PROBE_PT_STOW) probe.move_z_after_probing();
#endif
if (raise_after == PROBE_PT_STOW)
probe.move_z_after_probing();
report_current_position();
}

View File

@@ -41,9 +41,7 @@ void GcodeSuite::M401() {
*/
void GcodeSuite::M402() {
probe.stow();
#ifdef Z_AFTER_PROBING
probe.move_z_after_probing();
#endif
probe.move_z_after_probing();
report_current_position();
}