Page 2 of 2

Re: Detecting Expansion Relays

Posted: Thu Dec 27, 2012 10:40 am
by rimai
Are you using the last code I posted above without modifications?
It seems to be working for me.

Re: Detecting Expansion Relays

Posted: Thu Dec 27, 2012 12:26 pm
by modulok
I didn't copy the whole code and I think I missed a new DalayedPowerOutage line in this part.

Code: Select all

if (PowerOutage && ReefAngel.Relay.IsRelayPresent(EXP1_RELAY))
    {
      PowerOutage=false;
      DelayedPowerOutage=false;
      LastStart=now();
    }
It's working now, thanks for the continued assistance with this.