mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-13 12:37:07 +00:00
Fixed to DGE to allow use of Com ports via EfS bridge. Updates PD.Core version
This commit is contained in:
parent
bd4bb24945
commit
5fc93ca251
3 changed files with 18 additions and 5 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue