Corrects issue where if relay state was already Registered, DeviceFactory did not return a GenericRelayDevice

This commit is contained in:
Neil Dorin
2019-11-27 11:36:56 -07:00
parent c99ba9ca1d
commit 10104e2a09

View File

@@ -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
}