From 3a9bb3d5ec43ad33f94c1db9861cb039213041cd Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Mon, 30 Sep 2024 18:26:05 +0200 Subject: [PATCH] aqhome-nodes: only announce values if uid != 0 and != -1 Those ids occur for freshly assembled nodes. --- apps/aqhome-nodes/db.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/aqhome-nodes/db.c b/apps/aqhome-nodes/db.c index a90fab9..59818f4 100644 --- a/apps/aqhome-nodes/db.c +++ b/apps/aqhome-nodes/db.c @@ -248,7 +248,8 @@ void _handleMsgDevice(AQHOMED *aqh, const GWEN_MSG *msg) _assignDeviceId(aqh, ni, uid); _updateTimestampLastChange(ni); AQH_NodeDb_SetModified(aqh->nodeDb); - _announceNodeValues(aqh, ni); + if (uid!=0x00000000L && uid!=0xffffffff) + _announceNodeValues(aqh, ni); } else { DBG_INFO(AQH_LOGDOMAIN, "Error handling message");