Revert "update software endstop code"

This reverts commit 847ea4218edb2ebc40a1d35443f0aef2b8f1a9d8.