Return on mode change without deploying
This commit is contained in:
@@ -33,16 +33,20 @@
|
||||
|
||||
/**
|
||||
* M401: Deploy and activate the Z probe
|
||||
* BLTouch Only :
|
||||
* S : Set High Speed Mode
|
||||
*/
|
||||
void GcodeSuite::M401() {
|
||||
#if ENABLED(BLTOUCH)
|
||||
const bool seen_S = parser.seen('S'),
|
||||
to_enable = (seen_S && parser.value_bool());
|
||||
if (seen_S)
|
||||
if (seen_S) {
|
||||
if(to_enable)
|
||||
bltouch.bltouch_high_speed = true;
|
||||
else
|
||||
bltouch.bltouch_high_speed = false;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
probe.deploy();
|
||||
TERN_(PROBE_TARE, probe.tare());
|
||||
|
||||
@@ -277,7 +277,7 @@ typedef struct SettingsDataStruct {
|
||||
// BLTOUCH
|
||||
//
|
||||
bool bltouch_last_written_mode;
|
||||
bool bltouch_high_speed;.
|
||||
bool bltouch_high_speed;
|
||||
|
||||
//
|
||||
// Kinematic Settings
|
||||
|
||||
Reference in New Issue
Block a user