#523 Add NullCheck and Debug message for com Port

This commit is contained in:
Andrew Welker
2020-12-08 08:01:58 -07:00
parent 2c36c0f2cb
commit a78b29b0a1

View File

@@ -56,6 +56,10 @@ namespace PepperDash.Essentials.Core
private void RegisterAndConfigureComPort()
{
if (Port == null)
{
Debug.Console(0,this,Debug.ErrorLogLevel.Error, "Configured com Port for this device does not exist.");
}
if (Port.Parent is CrestronControlSystem)
{
var result = Port.Register();