Code: Select all
if (bitRead(ReefAngel.Relay.RelayData,2)) ReefAngel.Relay.Off(Port5); else ReefAngel.Relay.On(Port5);
For your ATO, the timeout is not triggered automatically. It has to be manually reset. Timeout is used for several reasons such as preventing overflow and running pump dry.
If you want an ATO function that doesn't have timeout, we can create a simple function for you, but your idea is pretty solid too.