diff --git a/Marlin/src/module/endstops.h b/Marlin/src/module/endstops.h index acd241d43..c3819417e 100644 --- a/Marlin/src/module/endstops.h +++ b/Marlin/src/module/endstops.h @@ -64,7 +64,7 @@ enum EndstopEnum : char { #define X_ENDSTOP TERN(X_HOME_TO_MAX, X_MAX, X_MIN) #define Y_ENDSTOP TERN(Y_HOME_TO_MAX, Y_MAX, Y_MIN) -#define Z_ENDSTOP TERN(Z_HOME_TO_MAX, Z_MAX, TERN(HOMING_Z_WITH_PROBE, Z_MIN, Z_MIN_PROBE)) +#define Z_ENDSTOP TERN(Z_HOME_TO_MAX, Z_MAX, TERN(HOMING_Z_WITH_PROBE, Z_MIN_PROBE, Z_MIN)) #undef __ES_ITEM #undef _ES_ITEM