The comments on the #define statements indicate that relayOn and relayOff are times, not states. So, comparing relayState to relayOn or relayOff doesn't make a lot of sense.
The comments on the #define statements indicate that relayOn and relayOff are times, not states. So, comparing relayState to relayOn or relayOff doesn't make a lot of sense.