Return on mode change without deploying

This commit is contained in:
InsanityAutomation
2021-10-09 14:07:02 -04:00
parent 0cc6955ab7
commit 4f62ae9764
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -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());
+1 -1
View File
@@ -277,7 +277,7 @@ typedef struct SettingsDataStruct {
// BLTOUCH
//
bool bltouch_last_written_mode;
bool bltouch_high_speed;.
bool bltouch_high_speed;
//
// Kinematic Settings