aqhome: Add debug output for invalid messages.
This commit is contained in:
@@ -460,6 +460,7 @@ int _readFromFd(AQH_SERIAL *sr)
|
|||||||
else if (rv>0) {
|
else if (rv>0) {
|
||||||
if (!AQH_Msg_IsChecksumValid(sr->currentlyReceivedMsg)) {
|
if (!AQH_Msg_IsChecksumValid(sr->currentlyReceivedMsg)) {
|
||||||
DBG_ERROR(NULL, "Invalid checksum, discarding message");
|
DBG_ERROR(NULL, "Invalid checksum, discarding message");
|
||||||
|
GWEN_Text_DumpString(AQH_Msg_GetBuffer(sr->currentlyReceivedMsg), AQH_Msg_GetBytesInBuffer(sr->currentlyReceivedMsg), 6);
|
||||||
AQH_Msg_free(sr->currentlyReceivedMsg);
|
AQH_Msg_free(sr->currentlyReceivedMsg);
|
||||||
sr->currentlyReceivedMsg=NULL;
|
sr->currentlyReceivedMsg=NULL;
|
||||||
rv=_discardInput(sr);
|
rv=_discardInput(sr);
|
||||||
|
|||||||
Reference in New Issue
Block a user