Important Update:

- FunctionCore/SelectableCore:
  - Replace Channel->State with InState
  - Add Channel-OutState (ready for output) updated by ChannelStateEvent()
- TimingCore:
  - Add GetUpCounter() for calculating uptime string (in seconds)
This commit is contained in:
Charl Wentzel
2019-06-23 10:38:27 +02:00
parent 207caa696d
commit e9b50f1af9
4 changed files with 80 additions and 28 deletions

View File

@@ -190,7 +190,7 @@ bool CSelectableBare::HandleState( THandle * Handle, EConnectState State )
ChannelState = CH_ready;
else
ChannelState = CH_off;
if (Handle->Channel->State != ChannelState)
if (Handle->Channel->InState != ChannelState)
SetChannelState( Handle->Channel, ChannelState );
}
return true;
@@ -677,7 +677,7 @@ int CSelectableBare::Input( const char * ChannelName, const char * SourceRef, co
ProcessName, Name, ((SourceRef && *SourceRef)? SourceRef : "(Any)"), ChannelName );
return 0;
}
else if (Channel->State != CH_ready) {
else if (Channel->InState != CH_ready) {
// Channel disabled
if (Log) Log->Message( LogLevel, dlHigh, "%s/%s: Channel '%s'->'%s' - Input rejected, Channel not Ready",
ProcessName, Name, ((SourceRef && *SourceRef)? SourceRef : "(Any)"), ChannelName );