Got that all sorted out. I replaced the endstop with a new micro switch and updated the firmware