Are you using the last code I posted above without modifications?
It seems to be working for me.
Detecting Expansion Relays
Re: Detecting Expansion Relays
I didn't copy the whole code and I think I missed a new DalayedPowerOutage line in this part.
It's working now, thanks for the continued assistance with this.
Code: Select all
if (PowerOutage && ReefAngel.Relay.IsRelayPresent(EXP1_RELAY))
{
PowerOutage=false;
DelayedPowerOutage=false;
LastStart=now();
}