mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 20:54:55 +00:00
Merge branch 'development' into release/1.5.7
This commit is contained in:
@@ -23,6 +23,9 @@ namespace PepperDash.Essentials.Core
|
|||||||
{
|
{
|
||||||
private CenRfgwController _gateway;
|
private CenRfgwController _gateway;
|
||||||
|
|
||||||
|
private GatewayBase _gatewayBase;
|
||||||
|
|
||||||
|
|
||||||
private Hr1x0WirelessRemoteBase _remote;
|
private Hr1x0WirelessRemoteBase _remote;
|
||||||
|
|
||||||
public FeedbackCollection<Feedback> Feedbacks { get; set; }
|
public FeedbackCollection<Feedback> Feedbacks { get; set; }
|
||||||
@@ -43,27 +46,31 @@ namespace PepperDash.Essentials.Core
|
|||||||
var rfId = (uint)props.Control.InfinetIdInt;
|
var rfId = (uint)props.Control.InfinetIdInt;
|
||||||
_config = config;
|
_config = config;
|
||||||
|
|
||||||
GatewayBase gateway;
|
|
||||||
|
|
||||||
if (props.GatewayDeviceKey == "processor")
|
if (props.GatewayDeviceKey == "processor")
|
||||||
{
|
{
|
||||||
gateway = Global.ControlSystem.ControllerRFGatewayDevice;
|
{
|
||||||
|
AddPreActivationAction(() =>
|
||||||
|
{
|
||||||
|
_remote = preActivationFunc(config);
|
||||||
|
RegisterEvents();
|
||||||
|
});
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
|
||||||
|
var gatewayDev = DeviceManager.GetDeviceForKey(props.GatewayDeviceKey) as CenRfgwController;
|
||||||
|
if (gatewayDev == null)
|
||||||
{
|
{
|
||||||
var gatewayDev = DeviceManager.GetDeviceForKey(props.GatewayDeviceKey) as CenRfgwController;
|
Debug.Console(0, "GetHr1x0WirelessRemote: Device '{0}' is not a valid device", props.GatewayDeviceKey);
|
||||||
if (gatewayDev == null)
|
|
||||||
{
|
|
||||||
Debug.Console(0, "GetHr1x0WirelessRemote: Device '{0}' is not a valid device", props.GatewayDeviceKey);
|
|
||||||
}
|
|
||||||
if (gatewayDev != null)
|
|
||||||
{
|
|
||||||
Debug.Console(0, "GetHr1x0WirelessRemote: Device '{0}' is a valid device", props.GatewayDeviceKey);
|
|
||||||
gateway = gatewayDev.GateWay;
|
|
||||||
_gateway = gatewayDev;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
if (gatewayDev != null)
|
||||||
|
{
|
||||||
|
Debug.Console(0, "GetHr1x0WirelessRemote: Device '{0}' is a valid device", props.GatewayDeviceKey);
|
||||||
|
_gateway = gatewayDev;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (_gateway == null) return;
|
if (_gateway == null) return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user