Important Update:
- SelectableCore: - Split handling of Handle from Input() to InputHandle() method - Allow multiple handles to be connected to single Channel - Update logs to report Handle, not Channel name - TimingCore: - Convert all functions to inline functions in header (remove .cpp file) - Add new function TimeLeft() - WatchdogCore: - Bug fix: No watchdog channel, use InputHandle() method not Input() - Bug fix: ping ignored, use To:"watchdog" in ping command
This commit is contained in:
@@ -25,7 +25,7 @@ CWatchdogCore::CWatchdogCore( const char * pName ) :
|
||||
{
|
||||
// Create protocol
|
||||
Protocol = new CLiteProtocol( 50, '\x01', '\x02', '\x00' );
|
||||
Protocol->CreateCommand( ProcessName, pName, "ping" );
|
||||
Protocol->CreateCommand( ProcessName, "watchdog", "ping" );
|
||||
|
||||
// Start timer
|
||||
PingInterval = 500;
|
||||
@@ -83,7 +83,7 @@ bool CWatchdogCore::Process()
|
||||
if (Timeout( PingTimer, PingInterval ))
|
||||
{
|
||||
// Send command
|
||||
Input( Ping->Name, Protocol->GetCommandStr(), Protocol->GetCommandLen() );
|
||||
InputHandle( Ping, Protocol->GetCommandStr(), Protocol->GetCommandLen() );
|
||||
|
||||
// Reset timer
|
||||
SetStartTime( &PingTimer );
|
||||
|
||||
Reference in New Issue
Block a user