Skimmate collector code question
Posted: Tue May 19, 2015 9:35 am
I've got the Avast skimmate collector hooked up to the ATO high port, and researched how best to code for its water level sensor. The code I found:
includes an "else" clause, the purpose for which I don't understand. If I leave the else out, then the code will simply override the skimmer pump to off when the collector is full. Including the else seems like it would switch the skimmer on (immediately) if it were ever clicked off, and would override the delayed-on functionality for the skimmer.
Am I missing something that would explain why that "else" should be included?
Code: Select all
if(!ReefAngel.HighATO.IsActive())
{
ReefAngel.Relay.Override(Port3,0);
}
else
{
ReefAngel.Relay.On(Port3);
}
Am I missing something that would explain why that "else" should be included?