HA4IoT.Hardware.LogicalBinaryOutput.CoerceState C# (CSharp) Méthode

CoerceState() private méthode

private CoerceState ( BinaryState state ) : BinaryState
state BinaryState
Résultat BinaryState
        private BinaryState CoerceState(BinaryState state)
        {
            if (InvertValue)
            {
                return state == BinaryState.High ? BinaryState.Low : BinaryState.High;
            }

            return state;
        }