fix compile error in endstops.cpp