Fixes issues with Adding HDMI LoopOut Ports

This commit is contained in:
Trevor Payne
2020-11-10 11:46:51 -06:00
parent 10509991c1
commit 010fdde45c

View File

@@ -774,10 +774,15 @@ namespace PepperDash.Essentials.DM
{ {
var portKey = string.Format("{0}--{1}", cardName, portName); var portKey = string.Format("{0}--{1}", cardName, portName);
Debug.Console(2, this, "Adding output port '{0}'", portKey); Debug.Console(2, this, "Adding output port '{0}'", portKey);
OutputPorts.Add(new RoutingOutputPort(portKey, sigType, portType, selector, this)
var outputPort = new RoutingOutputPort(portKey, sigType, portType, selector, this);
if (portName.IndexOf("Loop", StringComparison.InvariantCultureIgnoreCase) < 0)
{ {
FeedbackMatchObject = Chassis.Outputs[(uint)selector] outputPort.FeedbackMatchObject = Chassis.Outputs[(uint) selector];
}); }
OutputPorts.Add(outputPort);
} }
/// <summary> /// <summary>
@@ -787,11 +792,12 @@ namespace PepperDash.Essentials.DM
{ {
var portKey = string.Format("{0}--{1}", cardName, portName); var portKey = string.Format("{0}--{1}", cardName, portName);
Debug.Console(2, this, "Adding output port '{0}'", portKey); Debug.Console(2, this, "Adding output port '{0}'", portKey);
var outputPort = new RoutingOutputPort(portKey, sigType, portType, selector, this) var outputPort = new RoutingOutputPort(portKey, sigType, portType, selector, this);
{
FeedbackMatchObject = Chassis.Outputs[(uint)selector]
}; ;
if (portName.IndexOf("Loop", StringComparison.InvariantCultureIgnoreCase) < 0)
{
outputPort.FeedbackMatchObject = Chassis.Outputs[(uint)selector];
}
if (cecPort != null) if (cecPort != null)
outputPort.Port = cecPort; outputPort.Port = cecPort;