Nevermind, limit switches, use OPEN and CLOSED, not a bit test... bah sorry
Its been a long 6 weeks... (*mutters on about being designer, team leader, and programmer...*)
I thought that they made it so that when the switch was closed, the bit read 1, and when it was open it read 0.
in user_routines.h
Code:
#define OPEN 1 /* Limit switch is open (input is floating high). */
#define CLOSED 0 /* Limit switch is closed (input connected to ground). */
I guess I won't have to modify my programs after all...