changed X_ENDSTOPS_INVERTING code to reflect changes in commit 2ca983568d5cc658ba00ec0b92d5fd31455c0364