mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +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()
|
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)
|
if (Port.Parent is CrestronControlSystem)
|
||||||
{
|
{
|
||||||
var result = Port.Register();
|
var result = Port.Register();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue