HA4IoT.Hardware.LogicalBinaryOutput.CoerceState C# (CSharp) 메소드

CoerceState() 개인적인 메소드

private CoerceState ( BinaryState state ) : BinaryState
state BinaryState
리턴 BinaryState
        private BinaryState CoerceState(BinaryState state)
        {
            if (InvertValue)
            {
                return state == BinaryState.High ? BinaryState.Low : BinaryState.High;
            }

            return state;
        }