🚸 M402 Report (BLTouch HS Mode) (#28072)
Some checks failed
CI - Build Tests / Build Test (push) Waiting to run
CI - Unit Tests / Unit Test (push) Waiting to run
CI - Validate Source Files / Validate Source Files (push) Waiting to run
CI - Validate Pins Files / Validate Pins Files (push) Has been cancelled

This commit is contained in:
ellensp 2025-09-26 21:03:53 +12:00 committed by GitHub
parent 0628573fc3
commit 4dd5b713eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 17 additions and 0 deletions

View file

@ -1050,6 +1050,7 @@ private:
#if HAS_BED_PROBE
static void M401();
static void M401_report(const bool forReplay=true);
static void M402();
#endif

View file

@ -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<bool> Remain in place after stowing (and before deactivating) the probe

View file

@ -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
//