Sorry to keep bugging with this issue. But need help once again.
I updated my ATO code (again) from this: (was working correctly)
Code: Select all
if ((hour()>=20 || hour()<=8) && (ReefAngel.Params.PH < 830))
{
ReefAngel.SingleATO(false,Port5,180,0); // Sump switch. Kalk schedule 8pm - 8am if pH < 8.3 If ATO/Kalk runs for 180 seconds, shut off and send alert.
}
else
{
ReefAngel.SingleATO(false,Port8,180,0); // Sump switch. If ATO/RoDi runs for 180 seconds, shut off and send alert.
}
To this:
Code: Select all
if ((hour()>=20 || hour()<=8) && (ReefAngel.Params.PH < 830))
{
ReefAngel.SingleATO(false,Port5,180,0); // Sump switch. Kalk schedule 8pm - 8am if pH < 8.3 If ATO/Kalk runs for 180 seconds, shut off and send alert.
}
else if (ReefAngel.Params.PH < 810)
{
ReefAngel.SingleATO(false,Port5,180,0); // Sump switch. Use ATO/Kalk if pH < 8.1. If ATO/Kalk runs for 180 seconds, shut off and send alert.
}
else
{
ReefAngel.SingleATO(false,Port8,180,0); // Sump switch. If ATO/RoDi runs for 180 seconds, shut off and send alert.
}
After doing upload, Port5 turned on, and would not shut off, even though Sump float indicated full. Had to switch it from AUTO to OFF. Time was 1730, pH was 8.13, and sump float was in the green (fully topped up).