private void TurnLEDOn(Controller.LEDState ledState) { lock ( _faceplateLock ) { // Is this LED already the only LED that's on? Then we don't need to do anything. Let the LED thread sleep. if (_ledOnPositions.Count == 1 && _ledOnPositions[0] == ledState) { return; } _ledOnPositions = new List <Controller.LEDState>() { ledState }; } _faceplateEvent.Set(); }
public virtual void TurnLEDOn(Controller.LEDState state) { Controller.TurnLEDOn(state); }