adjust factory and constructor for EiscApiAdvanced

Keep SystemMonitor from getting instantiated
if we're on a VC-4 instance
This commit is contained in:
Andrew Welker
2020-09-25 08:46:52 -06:00
parent 8f319a4405
commit 0fc6a73b30
4 changed files with 33 additions and 17 deletions

View File

@@ -327,7 +327,11 @@ namespace PepperDash.Essentials
DeviceManager.AddDevice(new PepperDash.Essentials.Core.Devices.CrestronProcessor("processor"));
// Add global System Monitor device
DeviceManager.AddDevice(new PepperDash.Essentials.Core.Monitoring.SystemMonitorController("systemMonitor"));
if (CrestronEnvironment.DevicePlatform == eDevicePlatform.Appliance)
{
DeviceManager.AddDevice(
new PepperDash.Essentials.Core.Monitoring.SystemMonitorController("systemMonitor"));
}
foreach (var devConf in ConfigReader.ConfigObject.Devices)
{