From 072ed8810279a992dfb9477b28e90d07ec708b20 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Wed, 2 Oct 2024 22:10:31 +0200 Subject: [PATCH] only announce values when there is a valid uid. --- 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 59818f4..0c2618d 100644 --- a/apps/aqhome-nodes/db.c +++ b/apps/aqhome-nodes/db.c @@ -353,7 +353,8 @@ void _handleMsgFlashReady(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");