@@ -219,6 +219,7 @@
#endif
#if ENABLED(DISABLE_YMAX_ENDSTOP)
+ #undef Y_MAX_PIN
#define Y_MAX_PIN -1