Box1_Port6 is the ATO pump.
I thought this would work, but nope, it doesn't:
Code: Select all
if(ReefAngel.HighATO.IsActive())
{
ReefAngel.SingleATOLow( Box1_Port6 );
}
Code: Select all
unsigned long TempTimeout = 60;
TempTimeout *= 1000;
unsigned long ATOTime;
if ( ReefAngel.LowATO.IsActive() && ReefAngel.HighATO.IsActive() && ( !ReefAngel.LowATO.IsTopping()) )
{
ATOTime = millis();
ReefAngel.LowATO.StartTopping();
ReefAngel.Relay.On(Box1_Port6);
}
// If the high switch is activated, this is a safeguard to prevent over running of the top off pump
if ( !ReefAngel.HighATO.IsActive() || !ReefAngel.LowATO.IsActive() )
{
ReefAngel.LowATO.StopTopping(); // stop the low ato timer
ReefAngel.Relay.Off(Box1_Port6);
}