added some more debug information
This commit is contained in:
parent
3ffc5cac9b
commit
618ef47d8b
1 changed files with 16 additions and 0 deletions
|
@ -176,6 +176,12 @@ bool CProtocol::ParseMessageFrame ( const CVector<uint8_t>& 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<uint8_t>& 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<uint8_t>& 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++ )
|
||||
|
|
Loading…
Reference in a new issue