Browse Source

M119 => report_states

Scott Lahteine 4 years ago
parent
commit
c80eda073f
3 changed files with 5 additions and 5 deletions
  1. 1
    1
      Marlin/src/gcode/host/M119.cpp
  2. 2
    2
      Marlin/src/module/endstops.cpp
  3. 2
    2
      Marlin/src/module/endstops.h

+ 1
- 1
Marlin/src/gcode/host/M119.cpp View File

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

+ 2
- 2
Marlin/src/module/endstops.cpp View File

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

+ 2
- 2
Marlin/src/module/endstops.h View File

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

Loading…
Cancel
Save