Option for extra endstop check (#18424)

This commit is contained in:
Speaka
2020-07-12 20:16:56 +02:00
committed by GitHub
parent 4457b9d5d2
commit 2c238e4fc2
5 changed files with 29 additions and 11 deletions

View File

@ -38,6 +38,10 @@ enum EndstopEnum : char {
Z4_MIN, Z4_MAX
};
#define X_ENDSTOP (X_HOME_DIR < 0 ? X_MIN : X_MAX)
#define Y_ENDSTOP (Y_HOME_DIR < 0 ? Y_MIN : Y_MAX)
#define Z_ENDSTOP (Z_HOME_DIR < 0 ? TERN(HOMING_Z_WITH_PROBE, Z_MIN, Z_MIN_PROBE) : Z_MAX)
class Endstops {
public:
#if HAS_EXTRA_ENDSTOPS