From a84084b2734e8ce8b0e7eaef32d79024c38d0d99 Mon Sep 17 00:00:00 2001 From: Jason T Alborough Date: Thu, 6 Sep 2018 20:08:00 -0400 Subject: [PATCH] Adds Online to EssentialsDsp --- PepperDashEssentials/Bridges/EssentialDsp.cs | 11 +++++++++++ essentials-framework | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/PepperDashEssentials/Bridges/EssentialDsp.cs b/PepperDashEssentials/Bridges/EssentialDsp.cs index 2808a04a..837f106e 100644 --- a/PepperDashEssentials/Bridges/EssentialDsp.cs +++ b/PepperDashEssentials/Bridges/EssentialDsp.cs @@ -28,12 +28,18 @@ namespace PepperDash.Essentials { } public override bool CustomActivate() { // Create EiscApis + try { + ICommunicationMonitor comm = null; foreach (var device in DeviceManager.AllDevices) { if (device.Key == this.Properties.connectionDeviceKey) { + if (!(device is ICommunicationMonitor)) + { + comm = device as ICommunicationMonitor; + } Debug.Console(2, "deviceKey {0} Matches", device.Key); Dsp = DeviceManager.GetDeviceForKey(device.Key) as PepperDash.Essentials.Devices.Common.DSP.QscDsp; break; @@ -51,6 +57,10 @@ namespace PepperDash.Essentials { var ApiEisc = new BridgeApiEisc(Ipid); Debug.Console(2, "Connecting EiscApi {0} to {1}", ApiEisc.Ipid, Dsp.Name); ushort x = 1; + if (comm != null) + { + comm.CommunicationMonitor.IsOnlineFeedback.LinkInputSig(ApiEisc.Eisc.BooleanInput[ApiMap.Online]); + } foreach (var channel in Dsp.LevelControlPoints) { //var QscChannel = channel.Value as PepperDash.Essentials.Devices.Common.DSP.QscDspLevelControl; @@ -127,6 +137,7 @@ namespace PepperDash.Essentials { public class EssentialDspApiMap { + public ushort Online = 1; public ushort presetString = 2000; public Dictionary channelMuteToggle; public Dictionary channelMuteOn; diff --git a/essentials-framework b/essentials-framework index e1f3891b..2a4a0c8d 160000 --- a/essentials-framework +++ b/essentials-framework @@ -1 +1 @@ -Subproject commit e1f3891bd4bc8e0f4961108ae48566c44dac1f77 +Subproject commit 2a4a0c8dc54c4cd9f5a707b7ef6b41446f0f4fe5