Browse Source

M119 => report_states

Scott Lahteine 4 years ago
parent
commit
c80eda073f

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

28
  */
28
  */
29
 void GcodeSuite::M119() {
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
   SERIAL_EOL();
396
   SERIAL_EOL();
397
 }
397
 }
398
 
398
 
399
-void _O2 Endstops::M119() {
399
+void _O2 Endstops::report_states() {
400
   #if ENABLED(BLTOUCH)
400
   #if ENABLED(BLTOUCH)
401
     bltouch._set_SW_mode();
401
     bltouch._set_SW_mode();
402
   #endif
402
   #endif
484
     joystick.report();
484
     joystick.report();
485
   #endif
485
   #endif
486
 
486
 
487
-} // Endstops::M119
487
+} // Endstops::report_states
488
 
488
 
489
 // The following routines are called from an ISR context. It could be the temperature ISR, the
489
 // The following routines are called from an ISR context. It could be the temperature ISR, the
490
 // endstop ISR or the Stepper ISR.
490
 // endstop ISR or the Stepper ISR.

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

124
     static void event_handler();
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
     // Enable / disable endstop checking globally
131
     // Enable / disable endstop checking globally
132
     static void enable_globally(const bool onoff=true);
132
     static void enable_globally(const bool onoff=true);

Loading…
Cancel
Save