Merge "Relay: In free(), set both forward and reverse to 0."

This commit is contained in:
Thomas Clark (WPI)
2014-10-07 07:17:10 -07:00
committed by Gerrit Code Review

View File

@@ -188,7 +188,8 @@ public class Relay extends SensorBase implements LiveWindowSendable {
status.order(ByteOrder.LITTLE_ENDIAN);
RelayJNI.setRelayForward(m_port, (byte) 0, status.asIntBuffer());
RelayJNI.setRelayForward(m_port, (byte) 0, status.asIntBuffer());
HALUtil.checkStatus(status.asIntBuffer());
RelayJNI.setRelayReverse(m_port, (byte) 0, status.asIntBuffer());
HALUtil.checkStatus(status.asIntBuffer());
DIOJNI.freeDIO(m_port, status.asIntBuffer());