Information on preventing issues with the unused maximum position endstop switches:
In the configuration.h file, look for the DISABLE_MAX_ENDSTOPS definition. You want the line to look like the following, without any // preface:
#define DISABLE_MAX_ENDSTOPS