From 0a7bc181b738ac65ba7528934ab32cf5dffdfdbd Mon Sep 17 00:00:00 2001 From: Andrew Knous Date: Tue, 14 May 2024 16:18:30 -0400 Subject: [PATCH] fix: adds clear input to InputSlots first --- .../Chassis/DmChassisController.cs | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/PepperDash.Essentials.DM/Chassis/DmChassisController.cs b/src/PepperDash.Essentials.DM/Chassis/DmChassisController.cs index fe8cf61..9a19ea4 100644 --- a/src/PepperDash.Essentials.DM/Chassis/DmChassisController.cs +++ b/src/PepperDash.Essentials.DM/Chassis/DmChassisController.cs @@ -152,6 +152,8 @@ public static DmChassisController GetDmChassisController(string key, string name controller.InputPorts.Add(clearInputPort); + var clearInput = new DmMatrixClearInput(); + controller.InputSlots.Add(clearInput.Key, clearInput); // add the cards and port names foreach (var kvp in properties.InputSlots) @@ -250,8 +252,6 @@ public DmChassisController(string key, string name, DmMDMnxn chassis) InputSlots = new Dictionary(); OutputSlots = new Dictionary(); - AddPostActivationAction(BuildMatrixRouting); - for (uint x = 1; x <= Chassis.NumberOfOutputs; x++) { var tempX = x; @@ -2150,18 +2150,6 @@ private void SetHdcpStateAction(bool supportsHdcp2, DMInputPortWithCec port, uin }); } } - private void BuildMatrixRouting() - { - try - { - var clearInput = new DmMatrixClearInput(); - InputSlots.Add(clearInput.Key, clearInput); - } - catch (Exception ex) - { - Debug.LogMessage(ex, "Exception building MatrixRouting: {message}", this, ex.Message); - } - } public void Route(string inputSlotKey, string outputSlotKey, eRoutingSignalType type) {