mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 20:54:55 +00:00
Merged in bugfix/ecs-1214 (pull request #40)
Fixed to DGE to allow use of Com ports via EfS bridge. Updates PD.Core version Approved-by: Neil Dorin <ndorin@pepperdash.com>
This commit is contained in:
@@ -38,7 +38,13 @@ namespace PepperDash.Essentials
|
|||||||
else if (typeName == "dmdge200c")
|
else if (typeName == "dmdge200c")
|
||||||
dgeDevice = new DmDge200C(comm.IpIdInt, Global.ControlSystem);
|
dgeDevice = new DmDge200C(comm.IpIdInt, Global.ControlSystem);
|
||||||
|
|
||||||
var dgeController = new DgeController(config.Key, config.Name, dgeDevice, config, props);
|
if (dgeDevice == null)
|
||||||
|
{
|
||||||
|
Debug.Console(1, "Unable to create DGE device");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
var dgeController = new DgeController(config.Key + "-comPorts", config.Name, dgeDevice, config, props);
|
||||||
|
|
||||||
DeviceManager.AddDevice(dgeController);
|
DeviceManager.AddDevice(dgeController);
|
||||||
|
|
||||||
|
|||||||
@@ -30,12 +30,17 @@ namespace PepperDash.Essentials
|
|||||||
tsw.SigChange += Panel_SigChange;
|
tsw.SigChange += Panel_SigChange;
|
||||||
}
|
}
|
||||||
|
|
||||||
public EssentialsTouchpanelController(string key, string name, Dge100 panel, string projectName, string sgdPath)
|
public EssentialsTouchpanelController(string key, string name, Dge100 dge, string projectName, string sgdPath)
|
||||||
: base(key, name)
|
: base(key, name)
|
||||||
{
|
{
|
||||||
Panel = panel;
|
Panel = dge;
|
||||||
panel.LoadSmartObjects(sgdPath);
|
|
||||||
panel.SigChange += Panel_SigChange;
|
if (!string.IsNullOrEmpty(sgdPath))
|
||||||
|
dge.LoadSmartObjects(sgdPath);
|
||||||
|
else
|
||||||
|
Debug.Console(1, this, "No SGD file path defined");
|
||||||
|
|
||||||
|
dge.SigChange += Panel_SigChange;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -28,6 +28,8 @@ namespace PepperDash.Essentials.DM.Endpoints.DGEs
|
|||||||
public DgeController(string key, string name, Dge100 device, DeviceConfig dc, CrestronTouchpanelPropertiesConfig props)
|
public DgeController(string key, string name, Dge100 device, DeviceConfig dc, CrestronTouchpanelPropertiesConfig props)
|
||||||
:base(key, name, device)
|
:base(key, name, device)
|
||||||
{
|
{
|
||||||
|
DigitalGraphicsEngine = device;
|
||||||
|
|
||||||
DeviceConfig = dc;
|
DeviceConfig = dc;
|
||||||
|
|
||||||
PropertiesConfig = props;
|
PropertiesConfig = props;
|
||||||
|
|||||||
Reference in New Issue
Block a user