From 1c09127235b32ea6228129511e2b239a6b839091 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Sat, 22 Apr 2023 14:46:40 +0200 Subject: [PATCH] aqhome: fixed a bug. --- aqhome/msg/msg_flashend.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aqhome/msg/msg_flashend.c b/aqhome/msg/msg_flashend.c index 4184f44..b2e228e 100644 --- a/aqhome/msg/msg_flashend.c +++ b/aqhome/msg/msg_flashend.c @@ -58,8 +58,7 @@ uint8_t AQH_FlashEndMsg_GetReason(const GWEN_MSG *msg) void AQH_FlashEndMsg_DumpToBuffer(const GWEN_MSG *msg, GWEN_BUFFER *dbuf, const char *sText) { - if ((AQH_NodeMsg_GetMsgType(msg)==AQH_MSG_TYPE_FLASH_READY) && - (GWEN_Msg_GetBytesInBuffer(msg)>=AQH_MSG_FLASHEND_MINSIZE)) { + if (GWEN_Msg_GetBytesInBuffer(msg)>=AQH_MSG_FLASHEND_MINSIZE) { GWEN_Buffer_AppendArgs(dbuf, "0x%02x->0x%02x: FLASHEND %s (reason=%d)\n", AQH_NodeMsg_GetSourceAddress(msg), AQH_NodeMsg_GetDestAddress(msg),