Skip to content

Commit

Permalink
M401 enhance
Browse files Browse the repository at this point in the history
  • Loading branch information
kisslorand committed Feb 12, 2022
1 parent cda4682 commit de670b6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Marlin/src/gcode/probe/M401_M402.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@
void GcodeSuite::M401() {
if (parser.seen('S')) {
#ifdef BLTOUCH_HS_MODE
bltouch.high_speed_mode = parser.value_bool();
if (parser.has_value()) { // if no value after "S" than just query
bltouch.high_speed_mode = parser.value_bool();
}
SERIAL_ECHO_START();
SERIAL_ECHOPGM("BLTouch HS mode ");
serialprintln_onoff(bltouch.high_speed_mode);
#endif
}
else {
Expand Down

0 comments on commit de670b6

Please sign in to comment.