diff --git a/Marlin/src/gcode/probe/M401_M402.cpp b/Marlin/src/gcode/probe/M401_M402.cpp index aef34f3a1e..95828c23b1 100644 --- a/Marlin/src/gcode/probe/M401_M402.cpp +++ b/Marlin/src/gcode/probe/M401_M402.cpp @@ -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()); diff --git a/Marlin/src/module/settings.cpp b/Marlin/src/module/settings.cpp index 9698348ae3..80b9736478 100644 --- a/Marlin/src/module/settings.cpp +++ b/Marlin/src/module/settings.cpp @@ -277,7 +277,7 @@ typedef struct SettingsDataStruct { // BLTOUCH // bool bltouch_last_written_mode; - bool bltouch_high_speed;. + bool bltouch_high_speed; // // Kinematic Settings