mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 03:57:27 +00:00
#523 Add NullCheck and Debug message for com Port
This commit is contained in:
parent
2c36c0f2cb
commit
a78b29b0a1
1 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue