Encapsulate probe as singleton class (#16751)
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
* M401: Deploy and activate the Z probe
|
||||
*/
|
||||
void GcodeSuite::M401() {
|
||||
DEPLOY_PROBE();
|
||||
probe.deploy();
|
||||
report_current_position();
|
||||
}
|
||||
|
||||
@@ -40,9 +40,9 @@ void GcodeSuite::M401() {
|
||||
* M402: Deactivate and stow the Z probe
|
||||
*/
|
||||
void GcodeSuite::M402() {
|
||||
STOW_PROBE();
|
||||
probe.stow();
|
||||
#ifdef Z_AFTER_PROBING
|
||||
move_z_after_probing();
|
||||
probe.move_z_after_probing();
|
||||
#endif
|
||||
report_current_position();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user