Skip to content

Commit

Permalink
fix: correct selector in input & output ports
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-welker committed May 1, 2023
1 parent c952c86 commit 00e5196
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ExtronQuantumDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,12 @@ public ExtronQuantumDevice(string key, string name, ExtronQuantumConfig config,

private RoutingPortCollection<RoutingInputPort> CreateRoutingInputs(Dictionary<string, NameValue> inputs)
{
return inputs.Select((kv) => new RoutingInputPort(kv.Key, eRoutingSignalType.Video, eRoutingPortConnectionType.Hdmi, kv.Value, this)).ToList() as RoutingPortCollection<RoutingInputPort>;
return inputs.Select((kv) => new RoutingInputPort(kv.Key, eRoutingSignalType.Video, eRoutingPortConnectionType.Hdmi, kv.Value.Value, this)).ToList() as RoutingPortCollection<RoutingInputPort>;
}

private RoutingPortCollection<RoutingOutputPort> CreateRoutingOutputs(Dictionary<string, NameValue> outputs)
{
return outputs.Select((kv) => new RoutingOutputPort(kv.Key, eRoutingSignalType.Video, eRoutingPortConnectionType.Hdmi, kv.Value, this)).ToList() as RoutingPortCollection<RoutingOutputPort>;
return outputs.Select((kv) => new RoutingOutputPort(kv.Key, eRoutingSignalType.Video, eRoutingPortConnectionType.Hdmi, kv.Value.Value, this)).ToList() as RoutingPortCollection<RoutingOutputPort>;
}

public override void Initialize()
Expand Down

0 comments on commit 00e5196

Please sign in to comment.