Quote:
Originally Posted by Joe Ross
Have you tried this? It looks like kOn with direction kBoth will throw an exception.
|
Ugh you are right. What a pain.
You're probably best duplicate your own custom Relay class, and modify the following to make it work...
Lines 220 to 228:
Code:
case Value.kOn_val:
if (m_direction == Direction.kBoth) {
m_module.setRelayForward(m_channel, true);
m_module.setRelayReverse(m_channel, true);
} else if (m_direction == Direction.kForward) {
m_module.setRelayForward(m_channel, true);
} else if (m_direction == Direction.kReverse) {
m_module.setRelayReverse(m_channel, true);
}
break;

__________________
In life, what you give, you keep. What you fail to give, you lose forever...