Bug fixes:
- Remove LogStr var - Create new Command Str before adding parameters - Set Watchdog name correctly
This commit is contained in:
@@ -20,16 +20,16 @@
|
||||
|
||||
// Global vars
|
||||
extern char * ProcessName;
|
||||
char LogStr[1000]; // Temporary var to create log messages, globally available to save on memory operations
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
CWatchdogCore::CWatchdogCore( const char * WatchdogName, const int pInterval, CLogCore * pLog, EDebugLevel pDebugLevel ) :
|
||||
CFunctionCore( Name, pLog, pDebugLevel, OUT_NORMAL )
|
||||
CFunctionCore( WatchdogName, pLog, pDebugLevel, OUT_NORMAL )
|
||||
{
|
||||
// Create protocol
|
||||
Protocol = new CLiteProtocol( 50, '\x01', '\x02', '\x00' );
|
||||
Protocol->AppendParam( Name, strlen(Name) );
|
||||
Protocol->NewCommandStr();
|
||||
Protocol->AppendParam( WatchdogName, strlen(WatchdogName) );
|
||||
Protocol->AppendParam( ProcessName, strlen(ProcessName) );
|
||||
Protocol->AppendParam( "ping", 4 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user