mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-07 16:55:04 +00:00
Waits to return InitializeSystem until devices are registered. Adds DMPS system power on/off to device bridge.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user