aqhome: Add debug output for invalid messages.

This commit is contained in:
Martin Preuss
2023-02-05 15:38:55 +01:00
parent 2956637605
commit e5219b2796

View File

@@ -460,6 +460,7 @@ int _readFromFd(AQH_SERIAL *sr)
else if (rv>0) {
if (!AQH_Msg_IsChecksumValid(sr->currentlyReceivedMsg)) {
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);
sr->currentlyReceivedMsg=NULL;
rv=_discardInput(sr);