Auto square dual endStops on max position

I just installed the dual endstop firmware and I would like to home the MPCNC on the X and Y max position. What do I need to change in the config?



I figured it out.

In Configuration.h set

#define X_HOME_DIR 1
#define Y_HOME_DIR 1
#define Z_HOME_DIR -1

and in Configuration_adv.h

Change #define X2_USE_ENDSTOP XMAX to #define X2_USE_ENDSTOP XMIN

and #define Y2_USE_ENDSTOP YMAX to #define Y2_USE_ENDSTOP YMIN