Browse Source

Add support for Z2 min endstop to M119

Scott Lahteine 8 years ago
parent
commit
accabf088a
2 changed files with 5 additions and 0 deletions
  1. 4
    0
      Marlin/endstops.cpp
  2. 1
    0
      Marlin/language.h

+ 4
- 0
Marlin/endstops.cpp View File

201
     SERIAL_PROTOCOLPGM(MSG_Z_MIN);
201
     SERIAL_PROTOCOLPGM(MSG_Z_MIN);
202
     SERIAL_PROTOCOLLN(((READ(Z_MIN_PIN)^Z_MIN_ENDSTOP_INVERTING) ? MSG_ENDSTOP_HIT : MSG_ENDSTOP_OPEN));
202
     SERIAL_PROTOCOLLN(((READ(Z_MIN_PIN)^Z_MIN_ENDSTOP_INVERTING) ? MSG_ENDSTOP_HIT : MSG_ENDSTOP_OPEN));
203
   #endif
203
   #endif
204
+  #if HAS_Z2_MIN
205
+    SERIAL_PROTOCOLPGM(MSG_Z2_MIN);
206
+    SERIAL_PROTOCOLLN(((READ(Z2_MIN_PIN)^Z2_MIN_ENDSTOP_INVERTING) ? MSG_ENDSTOP_HIT : MSG_ENDSTOP_OPEN));
207
+  #endif
204
   #if HAS_Z_MAX
208
   #if HAS_Z_MAX
205
     SERIAL_PROTOCOLPGM(MSG_Z_MAX);
209
     SERIAL_PROTOCOLPGM(MSG_Z_MAX);
206
     SERIAL_PROTOCOLLN(((READ(Z_MAX_PIN)^Z_MAX_ENDSTOP_INVERTING) ? MSG_ENDSTOP_HIT : MSG_ENDSTOP_OPEN));
210
     SERIAL_PROTOCOLLN(((READ(Z_MAX_PIN)^Z_MAX_ENDSTOP_INVERTING) ? MSG_ENDSTOP_HIT : MSG_ENDSTOP_OPEN));

+ 1
- 0
Marlin/language.h View File

145
 #define MSG_Y_MAX                           "y_max: "
145
 #define MSG_Y_MAX                           "y_max: "
146
 #define MSG_Z_MIN                           "z_min: "
146
 #define MSG_Z_MIN                           "z_min: "
147
 #define MSG_Z_MAX                           "z_max: "
147
 #define MSG_Z_MAX                           "z_max: "
148
+#define MSG_Z2_MIN                          "z2_min: "
148
 #define MSG_Z2_MAX                          "z2_max: "
149
 #define MSG_Z2_MAX                          "z2_max: "
149
 #define MSG_Z_PROBE                         "z_probe: "
150
 #define MSG_Z_PROBE                         "z_probe: "
150
 #define MSG_ERR_MATERIAL_INDEX              "M145 S<index> out of range (0-1)"
151
 #define MSG_ERR_MATERIAL_INDEX              "M145 S<index> out of range (0-1)"

Loading…
Cancel
Save