From 618ef47d8beb2c5e83da2fadccc7a86c35c149b4 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Sun, 26 Feb 2006 11:49:28 +0000 Subject: [PATCH] added some more debug information --- src/protocol.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/protocol.cpp b/src/protocol.cpp index 36d70271..5917ed41 100755 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -176,6 +176,12 @@ bool CProtocol::ParseMessageFrame ( const CVector& vecIn, return false; // return error code } + +// TEST +qDebug ( "min length ok" ); + + + // decode header ----- iCurPos = 0; // start from beginning @@ -194,6 +200,11 @@ bool CProtocol::ParseMessageFrame ( const CVector& vecIn, return false; // return error code } +// TEST +qDebug ( "overall length ok" ); + + + // now check CRC ----- CCRC CRCObj; const int iLenCRCCalc = MESS_HEADER_LENGTH_BYTE + iLenBy; @@ -210,6 +221,11 @@ bool CProtocol::ParseMessageFrame ( const CVector& vecIn, return false; // return error code } + +// TEST +qDebug ( "CRC ok" ); + + // decode data ----- iCurPos = MESS_HEADER_LENGTH_BYTE; // start from beginning of data for ( i = 0; i < iLenBy; i++ )