mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-14 20:24:57 +00:00
Update StatusSignController to use IHasCresnetBranches Interface
InProgress #297
This commit is contained in:
@@ -188,12 +188,12 @@ namespace PepperDash.Essentials.Core.CrestronIO
|
|||||||
Debug.Console(0, "Device {0} is a valid cresnet master - creating new StatusSign", parentKey);
|
Debug.Console(0, "Device {0} is a valid cresnet master - creating new StatusSign", parentKey);
|
||||||
return new StatusSign(cresnetId, Global.ControlSystem);
|
return new StatusSign(cresnetId, Global.ControlSystem);
|
||||||
}
|
}
|
||||||
var cresnetBridge = DeviceManager.GetDeviceForKey(parentKey) as ICresnetBridge;
|
var cresnetBridge = DeviceManager.GetDeviceForKey(parentKey) as IHasCresnetBranches;
|
||||||
|
|
||||||
if (cresnetBridge != null)
|
if (cresnetBridge != null)
|
||||||
{
|
{
|
||||||
Debug.Console(0, "Device {0} is a valid cresnet master - creating new StatusSign", parentKey);
|
Debug.Console(0, "Device {0} is a valid cresnet master - creating new StatusSign", parentKey);
|
||||||
return new StatusSign(cresnetId, cresnetBridge.Branches[branchId]);
|
return new StatusSign(cresnetId, cresnetBridge.CresnetBranches[branchId]);
|
||||||
}
|
}
|
||||||
Debug.Console(0, "Device {0} is not a valid cresnet master", parentKey);
|
Debug.Console(0, "Device {0} is not a valid cresnet master", parentKey);
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user