From 3eeca2fbedc2d97784186e46c65c1820605b0f42 Mon Sep 17 00:00:00 2001 From: Trevor Payne Date: Thu, 2 Jul 2020 15:38:56 -0500 Subject: [PATCH] Update GlsPartitionSensorController to use IHasCresnetBranches Interface InProgress #297 --- .../PartitionSensor/GlsPartitionSensorController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/essentials-framework/Essentials Core/PepperDashEssentialsBase/PartitionSensor/GlsPartitionSensorController.cs b/essentials-framework/Essentials Core/PepperDashEssentialsBase/PartitionSensor/GlsPartitionSensorController.cs index 44dfbb4b..8dd30eff 100644 --- a/essentials-framework/Essentials Core/PepperDashEssentialsBase/PartitionSensor/GlsPartitionSensorController.cs +++ b/essentials-framework/Essentials Core/PepperDashEssentialsBase/PartitionSensor/GlsPartitionSensorController.cs @@ -248,12 +248,12 @@ namespace PepperDash.Essentials.Core Debug.Console(0, "Device {0} is a valid cresnet master - creating new GlsPartCn", parentKey); return new GlsPartCn(cresnetId, Global.ControlSystem); } - var cresnetBridge = DeviceManager.GetDeviceForKey(parentKey) as ICresnetBridge; + var cresnetBridge = DeviceManager.GetDeviceForKey(parentKey) as IHasCresnetBranches; if (cresnetBridge != null) { Debug.Console(0, "Device {0} is a valid cresnet master - creating new GlsPartCn", parentKey); - return new GlsPartCn(cresnetId, cresnetBridge.Branches[branchId]); + return new GlsPartCn(cresnetId, cresnetBridge.CresnetBranches[branchId]); } Debug.Console(0, "Device {0} is not a valid cresnet master", parentKey); return null;