Detecting Expansion Relays

Basic / Standard Reef Angel hardware
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Detecting Expansion Relays

Post by rimai »

Are you using the last code I posted above without modifications?
It seems to be working for me.
Roberto.
modulok
Posts: 163
Joined: Wed Oct 24, 2012 8:37 am

Re: Detecting Expansion Relays

Post 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.
Image
Post Reply