ok i commented out that section and i flashed the firmware
I was able to home all axis but when i try and autolevel the prob tried to find Z off the table to far over X