From c4cec8e97da95f4b90e730dccfdb86f112e9b35d Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Tue, 20 Apr 2021 14:12:38 -0600 Subject: [PATCH] Fix LinkToApi method --- .../Essentials_DM/Chassis/DmpsRoutingController.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/essentials-framework/Essentials DM/Essentials_DM/Chassis/DmpsRoutingController.cs b/essentials-framework/Essentials DM/Essentials_DM/Chassis/DmpsRoutingController.cs index f0e3a323..dfc6ec88 100644 --- a/essentials-framework/Essentials DM/Essentials_DM/Chassis/DmpsRoutingController.cs +++ b/essentials-framework/Essentials DM/Essentials_DM/Chassis/DmpsRoutingController.cs @@ -274,9 +274,12 @@ namespace PepperDash.Essentials.DM AudioOutputFeedbacks[ioSlot].LinkInputSig(trilist.UShortInput[joinMap.OutputAudio.JoinNumber + ioSlotJoin]); } - if (AudioOutputSourceDeviceFeedbacks[ioSlot] != null) + IntFeedback audioOutSourceDeviceFeedback; + + + if (AudioOutputSourceDeviceFeedbacks.TryGetValue(ioSlot, out audioOutSourceDeviceFeedback)) { - AudioOutputSourceDeviceFeedbacks[ioSlot].LinkInputSig( + audioOutSourceDeviceFeedback.LinkInputSig( trilist.UShortInput[joinMap.OutputAudioSourceDevice.JoinNumber + ioSlotJoin]); } if (OutputNameFeedbacks[ioSlot] != null)