Help with code

Do you have a question on how to do something.
Ask in here.
Post Reply
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Help with code

Post by lnevo »

This one will test that both relays are offline. If you want it to be either change && to ||

Code: Select all

// Power Outage - turn off everything
  if (!ReefAngel.Relay.IsRelayPresent(EXP1_RELAY) && (!ReefAngel.Relay.IsRelayPresent(EXP2_RELAY)) // Expansion Relay NOT present
Post Reply