Add input protection to endstops