[2.0.x] Add Z_AFTER_PROBING option (#10058)
Some "fix-mounted" probes need manual stowing. And after probing some may prefer to raise or lower the nozzle. This restores an old option but tailors it to allow raise or lower as preferred.
This commit is contained in:
@@ -25,16 +25,24 @@
|
||||
#if HAS_BED_PROBE
|
||||
|
||||
#include "../gcode.h"
|
||||
#include "../../module/motion.h"
|
||||
#include "../../module/probe.h"
|
||||
|
||||
/**
|
||||
* M401: Deploy and activate the Z probe
|
||||
*/
|
||||
void GcodeSuite::M401() { DEPLOY_PROBE(); }
|
||||
void GcodeSuite::M401() {
|
||||
DEPLOY_PROBE();
|
||||
report_current_position();
|
||||
}
|
||||
|
||||
/**
|
||||
* M402: Deactivate and stow the Z probe
|
||||
*/
|
||||
void GcodeSuite::M402() { STOW_PROBE(); }
|
||||
void GcodeSuite::M402() {
|
||||
STOW_PROBE();
|
||||
move_z_after_probing();
|
||||
report_current_position();
|
||||
}
|
||||
|
||||
#endif // HAS_BED_PROBE
|
||||
|
||||
Reference in New Issue
Block a user