Skip to content

Commit

Permalink
fix: fixes issue with MC route feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
aknous committed May 20, 2024
1 parent 0bdefae commit 92c4a53
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Chassis/DmChassisController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2179,6 +2179,13 @@ public void Route(string inputSlotKey, string outputSlotKey, eRoutingSignalType
return;
}


if (inputSlot is DmMatrixClearInput)
{

ExecuteSwitch(null, Chassis.Outputs[(uint)outputSlot.SlotNumber], type);
return;
}
ExecuteSwitch(Chassis.Inputs[(uint)inputSlot.SlotNumber], Chassis.Outputs[(uint)outputSlot.SlotNumber], type);
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/Routing/DmMatrixOutput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ private void Switcher_DMOutputChange(Switch device, DMOutputEventArgs args)
uint inputNumber = 0;
var routeType = eRoutingSignalType.Video;



switch (args.EventId)
{
case DMOutputEventIds.VideoOutEventId:
Expand All @@ -55,6 +57,7 @@ private void Switcher_DMOutputChange(Switch device, DMOutputEventArgs args)
routeType = eRoutingSignalType.Audio;
break;
}
default: return;
}
var inputSlot = _chassis.InputSlots.Values.FirstOrDefault(input => input.SlotNumber == inputNumber);
SetInputRoute(routeType, inputSlot);
Expand Down

0 comments on commit 92c4a53

Please sign in to comment.