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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user