M119 => report_states

This commit is contained in:
Scott Lahteine 2019-10-30 15:07:24 -05:00
parent 7d24f152d8
commit c80eda073f
3 changed files with 5 additions and 5 deletions

View file

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

View file

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

View file

@ -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);