Browse Source

M119 => report_states

pull/1/head
Scott Lahteine 5 years ago
parent
commit
c80eda073f
  1. 2
      Marlin/src/gcode/host/M119.cpp
  2. 4
      Marlin/src/module/endstops.cpp
  3. 4
      Marlin/src/module/endstops.h

2
Marlin/src/gcode/host/M119.cpp

@ -28,6 +28,6 @@
*/ */
void GcodeSuite::M119() { void GcodeSuite::M119() {
endstops.M119(); endstops.report_states();
} }

4
Marlin/src/module/endstops.cpp

@ -396,7 +396,7 @@ static void print_es_state(const bool is_hit, PGM_P const label=nullptr) {
SERIAL_EOL(); SERIAL_EOL();
} }
void _O2 Endstops::M119() { void _O2 Endstops::report_states() {
#if ENABLED(BLTOUCH) #if ENABLED(BLTOUCH)
bltouch._set_SW_mode(); bltouch._set_SW_mode();
#endif #endif
@ -484,7 +484,7 @@ void _O2 Endstops::M119() {
joystick.report(); joystick.report();
#endif #endif
} // Endstops::M119 } // Endstops::report_states
// The following routines are called from an ISR context. It could be the temperature ISR, the // The following routines are called from an ISR context. It could be the temperature ISR, the
// endstop ISR or the Stepper ISR. // endstop ISR or the Stepper ISR.

4
Marlin/src/module/endstops.h

@ -124,9 +124,9 @@ class Endstops {
static void event_handler(); static void event_handler();
/** /**
* Report endstop positions in response to M119 * Report endstop states in response to M119
*/ */
static void M119(); static void report_states();
// Enable / disable endstop checking globally // Enable / disable endstop checking globally
static void enable_globally(const bool onoff=true); static void enable_globally(const bool onoff=true);

Loading…
Cancel
Save