diff --git a/Marlin/src/gcode/gcode.h b/Marlin/src/gcode/gcode.h index 0e5d8f5681..8fbb498761 100644 --- a/Marlin/src/gcode/gcode.h +++ b/Marlin/src/gcode/gcode.h @@ -1050,6 +1050,7 @@ private: #if HAS_BED_PROBE static void M401(); + static void M401_report(const bool forReplay=true); static void M402(); #endif diff --git a/Marlin/src/gcode/probe/M401_M402.cpp b/Marlin/src/gcode/probe/M401_M402.cpp index 237f841212..a2a1caa01d 100644 --- a/Marlin/src/gcode/probe/M401_M402.cpp +++ b/Marlin/src/gcode/probe/M401_M402.cpp @@ -57,6 +57,17 @@ void GcodeSuite::M401() { report_current_position(); } +void GcodeSuite::M401_report(const bool forReplay/*=true*/) { + TERN_(MARLIN_SMALL_BUILD, return); + + #if HAS_BLTOUCH_HS_MODE + if (!forReplay) { + report_heading_etc(forReplay, F("BLTouch HS mode")); + SERIAL_ECHOLNPGM(" M401 S", bltouch.high_speed_mode, " ; ", ON_OFF(bltouch.high_speed_mode)); + } + #endif +} + /** * M402: Deactivate and stow the Z probe * R Remain in place after stowing (and before deactivating) the probe diff --git a/Marlin/src/module/settings.cpp b/Marlin/src/module/settings.cpp index dd724b8441..1eb46e606b 100644 --- a/Marlin/src/module/settings.cpp +++ b/Marlin/src/module/settings.cpp @@ -3960,6 +3960,11 @@ void MarlinSettings::reset() { // TERN_(EDITABLE_SERVO_ANGLES, gcode.M281_report(forReplay)); + // + // BLTouch High Speed Mode + // + TERN_(BLTOUCH_HS_MODE, gcode.M401_report(forReplay)); + // // Kinematic Settings //