From 7a737a008412f50d90dff33424354c6ec72d8bf9 Mon Sep 17 00:00:00 2001 From: Tobias Svehagen Date: Wed, 19 Feb 2020 13:53:24 +0100 Subject: [PATCH] Bluetooth: Mesh: Fix bug with storing node in CDB The free_slot->clear must be set to false since it could still be true from previous use. Signed-off-by: Tobias Svehagen --- subsys/bluetooth/mesh/settings.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subsys/bluetooth/mesh/settings.c b/subsys/bluetooth/mesh/settings.c index 896a2997305..2c63ea94993 100644 --- a/subsys/bluetooth/mesh/settings.c +++ b/subsys/bluetooth/mesh/settings.c @@ -2260,6 +2260,7 @@ void bt_mesh_store_cdb_node(const struct bt_mesh_cdb_node *node) } free_slot->addr = node->addr; + free_slot->clear = false; schedule_cdb_store(BT_MESH_CDB_NODES_PENDING); }