mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-12 11:15:08 +00:00
Finished GlsOccupancySensorBaseControllerBridge to handle both single and dual technology sensors.
This commit is contained in:
@@ -348,12 +348,10 @@ namespace PepperDash.Essentials.Devices.Common
|
||||
{
|
||||
var comm = CommFactory.GetControlPropertiesConfig(dc);
|
||||
|
||||
GlsOccupancySensorBase occSensor = null;
|
||||
|
||||
occSensor = new GlsOdtCCn(comm.CresnetIdInt, Global.ControlSystem);
|
||||
var occSensor = new GlsOdtCCn(comm.CresnetIdInt, Global.ControlSystem);
|
||||
|
||||
if (occSensor != null)
|
||||
return new GlsOccupancySensorBaseController(key, name, occSensor);
|
||||
return new GlsOdtOccupancySensorController(key, name, occSensor);
|
||||
else
|
||||
Debug.Console(0, "ERROR: Unable to create Occupancy Sensor Device. Key: '{0}'", key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user