M119 => report_states
This commit is contained in:
parent
7d24f152d8
commit
c80eda073f
3 changed files with 5 additions and 5 deletions
|
@ -28,6 +28,6 @@
|
|||
*/
|
||||
void GcodeSuite::M119() {
|
||||
|
||||
endstops.M119();
|
||||
endstops.report_states();
|
||||
|
||||
}
|
||||
|
|
|
@ -396,7 +396,7 @@ static void print_es_state(const bool is_hit, PGM_P const label=nullptr) {
|
|||
SERIAL_EOL();
|
||||
}
|
||||
|
||||
void _O2 Endstops::M119() {
|
||||
void _O2 Endstops::report_states() {
|
||||
#if ENABLED(BLTOUCH)
|
||||
bltouch._set_SW_mode();
|
||||
#endif
|
||||
|
@ -484,7 +484,7 @@ void _O2 Endstops::M119() {
|
|||
joystick.report();
|
||||
#endif
|
||||
|
||||
} // Endstops::M119
|
||||
} // Endstops::report_states
|
||||
|
||||
// The following routines are called from an ISR context. It could be the temperature ISR, the
|
||||
// endstop ISR or the Stepper ISR.
|
||||
|
|
|
@ -124,9 +124,9 @@ class Endstops {
|
|||
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
|
||||
static void enable_globally(const bool onoff=true);
|
||||
|
|
Reference in a new issue