From e5219b27968d81226eeeffd64440a044e1ff9b4e Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Sun, 5 Feb 2023 15:38:55 +0100 Subject: [PATCH] aqhome: Add debug output for invalid messages. --- aqhome/serial.c | 1 + 1 file changed, 1 insertion(+) diff --git a/aqhome/serial.c b/aqhome/serial.c index fb41b69..2caa291 100644 --- a/aqhome/serial.c +++ b/aqhome/serial.c @@ -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);