mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-07 16:55:04 +00:00
Corrects issue where if relay state was already Registered, DeviceFactory did not return a GenericRelayDevice
This commit is contained in:
@@ -292,6 +292,10 @@ namespace PepperDash.Essentials.Devices.Common
|
||||
else
|
||||
Debug.Console(0, "Attempt to register relay {0} on device with key '{1}' failed.", props.PortNumber, props.PortDeviceKey);
|
||||
}
|
||||
else
|
||||
{
|
||||
return new GenericRelayDevice(key, relay);
|
||||
}
|
||||
|
||||
// Future: Check if portDevice is 3-series card or other non control system that supports versiports
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user