mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 20:17:03 +00:00
Waits to return InitializeSystem until devices are registered. Adds DMPS system power on/off to device bridge.
This commit is contained in:
parent
3d543dfd09
commit
bead782bd5
4 changed files with 124 additions and 19 deletions
|
|
@ -28,9 +28,11 @@ namespace PepperDash.Essentials.Core
|
|||
public static List<IKeyed> AllDevices { get { return new List<IKeyed>(Devices.Values); } }
|
||||
|
||||
public static bool AddDeviceEnabled;
|
||||
public static bool AllDevicesActivatedFb;
|
||||
|
||||
public static void Initialize(CrestronControlSystem cs)
|
||||
{
|
||||
AllDevicesActivatedFb = false;
|
||||
AddDeviceEnabled = true;
|
||||
CrestronConsole.AddNewConsoleCommand(ListDeviceCommStatuses, "devcommstatus", "Lists the communication status of all devices",
|
||||
ConsoleAccessLevelEnum.AccessOperator);
|
||||
|
|
@ -122,6 +124,7 @@ namespace PepperDash.Essentials.Core
|
|||
|
||||
private static void OnAllDevicesActivated()
|
||||
{
|
||||
AllDevicesActivatedFb = true;
|
||||
var handler = AllDevicesActivated;
|
||||
if (handler != null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue