From 010fdde45cd7e6047f78b28acaff8f5b543eccf3 Mon Sep 17 00:00:00 2001 From: Trevor Payne Date: Tue, 10 Nov 2020 11:46:51 -0600 Subject: [PATCH] Fixes issues with Adding HDMI LoopOut Ports --- .../Chassis/DmChassisController.cs | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/essentials-framework/Essentials DM/Essentials_DM/Chassis/DmChassisController.cs b/essentials-framework/Essentials DM/Essentials_DM/Chassis/DmChassisController.cs index 428bb8bc..09c7988a 100644 --- a/essentials-framework/Essentials DM/Essentials_DM/Chassis/DmChassisController.cs +++ b/essentials-framework/Essentials DM/Essentials_DM/Chassis/DmChassisController.cs @@ -774,10 +774,15 @@ namespace PepperDash.Essentials.DM { var portKey = string.Format("{0}--{1}", cardName, portName); 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); } /// @@ -786,12 +791,13 @@ namespace PepperDash.Essentials.DM void AddOutputPortWithDebug(string cardName, string portName, eRoutingSignalType sigType, eRoutingPortConnectionType portType, object selector, ICec cecPort) { var portKey = string.Format("{0}--{1}", cardName, portName); - Debug.Console(2, this, "Adding output port '{0}'", portKey); - var outputPort = new RoutingOutputPort(portKey, sigType, portType, selector, this) + Debug.Console(2, this, "Adding output port '{0}'", portKey); + 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]; + } if (cecPort != null) outputPort.Port = cecPort;