mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-18 14:15:08 +00:00
moves Port registration for controller ports to ConfigureComPort
...and renames method to RegisterAndConfigureComPort
This commit is contained in:
@@ -47,6 +47,12 @@ namespace PepperDash.Essentials.Core
|
||||
Spec = spec;
|
||||
//IsConnected = new BoolFeedback(CommonBoolCue.IsConnected, () => true);
|
||||
|
||||
|
||||
ConfigureComPort();
|
||||
}
|
||||
|
||||
private void ConfigureComPort()
|
||||
{
|
||||
if (Port.Parent is CrestronControlSystem)
|
||||
{
|
||||
|
||||
@@ -58,11 +64,7 @@ namespace PepperDash.Essentials.Core
|
||||
return; // false
|
||||
}
|
||||
}
|
||||
ConfigureComPort();
|
||||
}
|
||||
|
||||
private void ConfigureComPort()
|
||||
{
|
||||
var specResult = Port.SetComPortSpec(Spec);
|
||||
if (specResult != 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user