// just to be safe if the water level gets to 135 or greater, OVERRIDE the topoff.
if ( ReefAngel.WaterLevel.GetLevel(1) >= 145 ) ReefAngel.Relay.Override (Topoff,0);
// End Main Top Off
if (ReefAngel.DisplayedMenu==FEEDING_MODE || ReefAngel.DisplayedMenu==WATERCHANGE_MODE) {
atoIgnore=now();
}
if (now()-atoIgnore > 30) { // Wait 30 seconds before starting ATO
// just to be safe if the water level gets to 135 or greater, OVERRIDE the topoff.
if ( ReefAngel.WaterLevel.GetLevel(1) >= 145 ) ReefAngel.Relay.Override (Topoff,0);
// End Main Top Off
}
if (ReefAngel.DisplayedMenu==FEEDING_MODE || ReefAngel.DisplayedMenu==WATERCHANGE_MODE) {
atoIgnore=now();
}
lnevo wrote:unsigned long atoIgnore=0;
if (ReefAngel.DisplayedMenu==FEEDING_MODE || ReefAngel.DisplayedMenu==WATERCHANGE_MODE) {
atoIgnore=now();
}
if (now()-atoIgnore > 30) { // Wait 30 seconds before starting ATO
// just to be safe if the water level gets to 135 or greater, OVERRIDE the topoff.
if ( ReefAngel.WaterLevel.GetLevel(1) >= 145 ) ReefAngel.Relay.Override (Topoff,0);
// End Main Top Off
}