Update stepper.cpp
@ -942,6 +942,13 @@ void st_init() {
WRITE(Z_MIN_PIN,HIGH);
#endif
#if HAS_Z2_MIN
SET_INPUT(Z2_MIN_PIN);
#if ENABLED(ENDSTOPPULLUP_ZMIN)
WRITE(Z2_MIN_PIN,HIGH);
#if HAS_X_MAX
SET_INPUT(X_MAX_PIN);