Skip to content

Commit

Permalink
fix: adds clear input to InputSlots first
Browse files Browse the repository at this point in the history
  • Loading branch information
aknous committed May 14, 2024
1 parent a23270d commit 0a7bc18
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/PepperDash.Essentials.DM/Chassis/DmChassisController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -250,8 +252,6 @@ public DmChassisController(string key, string name, DmMDMnxn chassis)
InputSlots = new Dictionary<string, IRoutingInputSlot>();
OutputSlots = new Dictionary<string, IRoutingOutputSlot>();

AddPostActivationAction(BuildMatrixRouting);

for (uint x = 1; x <= Chassis.NumberOfOutputs; x++)
{
var tempX = x;
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 0a7bc18

Please sign in to comment.