Important Update:

- FunctionCore:
  - Improve Channel Events:
    - Remove important actions from ChannelStateEvent()
      (now only used for custom actions)
    - Add new method UpdateChannelOutState()
    - Add Channel Events to Link and Unlink actions
    - Rename SetChannelState() -> SetChannelInState()
  - Use Channel->Ref (instead of name) on all channel events
- DeviceCore/SelectableCore:
  - Rename SetChannelState() -> SetChannelInState()
This commit is contained in:
Charl Wentzel
2019-06-23 18:03:37 +02:00
parent e9b50f1af9
commit 9f8f69de3f
4 changed files with 31 additions and 22 deletions

View File

@@ -70,17 +70,17 @@ bool CDeviceCore::Init( CDataMember * FunctionConfig )
if (!(CmdChannel = GetChannel( "Command" )))
CmdChannel = AddChannel( "Command", CH_ready );
else
SetChannelState( CmdChannel, CH_ready );
SetChannelInState( CmdChannel, CH_ready );
if (!(DeviceChannel = GetChannel( "Device" )))
DeviceChannel = AddChannel( "Device", CH_ready );
else
SetChannelState( DeviceChannel, CH_ready );
SetChannelInState( DeviceChannel, CH_ready );
if (!(EventChannel = GetChannel( "Event" )))
EventChannel = AddChannel( "Event", CH_ready );
else
SetChannelState( EventChannel, CH_ready );
SetChannelInState( EventChannel, CH_ready );
// Load Polling configuration
PollConfig = Config->GetChild( "Polling", true );