From 89db6809865254adcea3e5f790888386bab1c720 Mon Sep 17 00:00:00 2001 From: Neil Dorin Date: Tue, 19 Nov 2019 20:08:47 -0700 Subject: [PATCH] Fixed syntax issue in CustomActivate() --- .../Essentials_DM/Chassis/DmpsRoutingController.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/essentials-framework/Essentials DM/Essentials_DM/Chassis/DmpsRoutingController.cs b/essentials-framework/Essentials DM/Essentials_DM/Chassis/DmpsRoutingController.cs index 96b8b0af..0c4ff887 100644 --- a/essentials-framework/Essentials DM/Essentials_DM/Chassis/DmpsRoutingController.cs +++ b/essentials-framework/Essentials DM/Essentials_DM/Chassis/DmpsRoutingController.cs @@ -116,23 +116,25 @@ namespace PepperDash.Essentials.DM public override bool CustomActivate() { - - // Set input and output names from config if (InputNames != null) + { foreach (var kvp in InputNames) { var input = (Dmps.SwitcherInputs[kvp.Key] as DMInput); - if(input != null) + if (input != null) input.Name.StringValue = kvp.Value; } + } if (OutputNames != null) + { foreach (var kvp in OutputNames) { var output = (Dmps.SwitcherOutputs[kvp.Key] as DMOutput); - if(output != null) + if (output != null) output.Name.StringValue = kvp.Value; } + } // Subscribe to events Dmps.DMInputChange += new DMInputEventHandler(Dmps_DMInputChange);