From b900d735b95737c266a6297944fd519dbc8445bd Mon Sep 17 00:00:00 2001 From: Charl Wentzel Date: Sat, 8 Jul 2017 22:39:32 +0200 Subject: [PATCH] Important update: - Used new core protocol function to create command - Bug fix: use correct sequence: From, To, Command --- WatchdogCore.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/WatchdogCore.cpp b/WatchdogCore.cpp index 1368a9b..1608b64 100644 --- a/WatchdogCore.cpp +++ b/WatchdogCore.cpp @@ -28,10 +28,7 @@ CWatchdogCore::CWatchdogCore( const char * WatchdogName, const int pInterval, CL { // Create protocol Protocol = new CLiteProtocol( 50, '\x01', '\x02', '\x00' ); - Protocol->NewCommandStr(); - Protocol->AppendParam( WatchdogName, strlen(WatchdogName) ); - Protocol->AppendParam( ProcessName, strlen(ProcessName) ); - Protocol->AppendParam( "ping", 4 ); + Protocol->CreateCommand( ProcessName, WatchdogName, "ping" ); // Start timer PingTimeout = 500;