We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4a7186 commit 2939b94Copy full SHA for 2939b94
Marlin/src/gcode/probe/M401_M402.cpp
@@ -36,12 +36,18 @@
36
* M401: Deploy and activate the Z probe
37
*
38
* With BLTOUCH_HS_MODE:
39
+ * H Report the current BLTouch HS mode state and exit
40
* S<bool> Set High Speed (HS) Mode and exit without deploy
41
*/
42
void GcodeSuite::M401() {
- if (parser.seen('S')) {
43
+ const bool seenH = parser.seen_test('H'),
44
+ seenS = parser.seen('S');
45
+ if (seenH || seenS) {
46
#ifdef BLTOUCH_HS_MODE
- bltouch.high_speed_mode = parser.value_bool();
47
+ if (seenS) bltouch.high_speed_mode = parser.value_bool();
48
+ SERIAL_ECHO_START();
49
+ SERIAL_ECHOPGM("BLTouch HS mode ");
50
+ serialprintln_onoff(bltouch.high_speed_mode);
51
#endif
52
}
53
else {
0 commit comments