Browse Source

Towards supporting Z2 in Endstops::report_state

Scott Lahteine 7 years ago
parent
commit
ef750ae86b
1 changed files with 7 additions and 3 deletions
  1. 7
    3
      Marlin/endstops.cpp

+ 7
- 3
Marlin/endstops.cpp View File

@@ -157,11 +157,15 @@ void Endstops::report_state() {
157 157
       if (TEST(endstop_hit_bits, A ##_MIN) || TEST(endstop_hit_bits, A ##_MAX)) \
158 158
         _ENDSTOP_HIT_ECHO(A,C)
159 159
 
160
+    #define ENDSTOP_HIT_TEST_X() _ENDSTOP_HIT_TEST(X,'X')
161
+    #define ENDSTOP_HIT_TEST_Y() _ENDSTOP_HIT_TEST(Y,'Y')
162
+    #define ENDSTOP_HIT_TEST_Z() _ENDSTOP_HIT_TEST(Z,'Z')
163
+
160 164
     SERIAL_ECHO_START;
161 165
     SERIAL_ECHOPGM(MSG_ENDSTOPS_HIT);
162
-    _ENDSTOP_HIT_TEST(X, 'X');
163
-    _ENDSTOP_HIT_TEST(Y, 'Y');
164
-    _ENDSTOP_HIT_TEST(Z, 'Z');
166
+    ENDSTOP_HIT_TEST_X();
167
+    ENDSTOP_HIT_TEST_Y();
168
+    ENDSTOP_HIT_TEST_Z();
165 169
 
166 170
     #if ENABLED(Z_MIN_PROBE_ENDSTOP)
167 171
       #define P_AXIS Z_AXIS

Loading…
Cancel
Save