mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-12-28 02:10:32 -07:00
🚸 M402 Report (BLTouch HS Mode) (#28072)
This commit is contained in:
parent
0628573fc3
commit
4dd5b713eb
3 changed files with 17 additions and 0 deletions
|
|
@ -1050,6 +1050,7 @@ private:
|
|||
|
||||
#if HAS_BED_PROBE
|
||||
static void M401();
|
||||
static void M401_report(const bool forReplay=true);
|
||||
static void M402();
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue