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++ )