|
@@ -4969,41 +4969,7 @@ inline void gcode_M117() {
|
4969
|
4969
|
/**
|
4970
|
4970
|
* M119: Output endstop states to serial output
|
4971
|
4971
|
*/
|
4972
|
|
-inline void gcode_M119() {
|
4973
|
|
- SERIAL_PROTOCOLLN(MSG_M119_REPORT);
|
4974
|
|
- #if HAS_X_MIN
|
4975
|
|
- SERIAL_PROTOCOLPGM(MSG_X_MIN);
|
4976
|
|
- SERIAL_PROTOCOLLN(((READ(X_MIN_PIN)^X_MIN_ENDSTOP_INVERTING) ? MSG_ENDSTOP_HIT : MSG_ENDSTOP_OPEN));
|
4977
|
|
- #endif
|
4978
|
|
- #if HAS_X_MAX
|
4979
|
|
- SERIAL_PROTOCOLPGM(MSG_X_MAX);
|
4980
|
|
- SERIAL_PROTOCOLLN(((READ(X_MAX_PIN)^X_MAX_ENDSTOP_INVERTING) ? MSG_ENDSTOP_HIT : MSG_ENDSTOP_OPEN));
|
4981
|
|
- #endif
|
4982
|
|
- #if HAS_Y_MIN
|
4983
|
|
- SERIAL_PROTOCOLPGM(MSG_Y_MIN);
|
4984
|
|
- SERIAL_PROTOCOLLN(((READ(Y_MIN_PIN)^Y_MIN_ENDSTOP_INVERTING) ? MSG_ENDSTOP_HIT : MSG_ENDSTOP_OPEN));
|
4985
|
|
- #endif
|
4986
|
|
- #if HAS_Y_MAX
|
4987
|
|
- SERIAL_PROTOCOLPGM(MSG_Y_MAX);
|
4988
|
|
- SERIAL_PROTOCOLLN(((READ(Y_MAX_PIN)^Y_MAX_ENDSTOP_INVERTING) ? MSG_ENDSTOP_HIT : MSG_ENDSTOP_OPEN));
|
4989
|
|
- #endif
|
4990
|
|
- #if HAS_Z_MIN
|
4991
|
|
- SERIAL_PROTOCOLPGM(MSG_Z_MIN);
|
4992
|
|
- SERIAL_PROTOCOLLN(((READ(Z_MIN_PIN)^Z_MIN_ENDSTOP_INVERTING) ? MSG_ENDSTOP_HIT : MSG_ENDSTOP_OPEN));
|
4993
|
|
- #endif
|
4994
|
|
- #if HAS_Z_MAX
|
4995
|
|
- SERIAL_PROTOCOLPGM(MSG_Z_MAX);
|
4996
|
|
- SERIAL_PROTOCOLLN(((READ(Z_MAX_PIN)^Z_MAX_ENDSTOP_INVERTING) ? MSG_ENDSTOP_HIT : MSG_ENDSTOP_OPEN));
|
4997
|
|
- #endif
|
4998
|
|
- #if HAS_Z2_MAX
|
4999
|
|
- SERIAL_PROTOCOLPGM(MSG_Z2_MAX);
|
5000
|
|
- SERIAL_PROTOCOLLN(((READ(Z2_MAX_PIN)^Z2_MAX_ENDSTOP_INVERTING) ? MSG_ENDSTOP_HIT : MSG_ENDSTOP_OPEN));
|
5001
|
|
- #endif
|
5002
|
|
- #if HAS_Z_PROBE
|
5003
|
|
- SERIAL_PROTOCOLPGM(MSG_Z_PROBE);
|
5004
|
|
- SERIAL_PROTOCOLLN(((READ(Z_MIN_PROBE_PIN)^Z_MIN_PROBE_ENDSTOP_INVERTING) ? MSG_ENDSTOP_HIT : MSG_ENDSTOP_OPEN));
|
5005
|
|
- #endif
|
5006
|
|
-}
|
|
4972
|
+inline void gcode_M119() { endstops.M119(); }
|
5007
|
4973
|
|
5008
|
4974
|
/**
|
5009
|
4975
|
* M120: Enable endstops and set non-homing endstop state to "enabled"
|