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 <tobias.svehagen@gmail.com>
This commit is contained in:
Tobias Svehagen 2020-02-19 13:53:24 +01:00 committed by Johan Hedberg
commit 7a737a0084

View file

@ -2260,6 +2260,7 @@ void bt_mesh_store_cdb_node(const struct bt_mesh_cdb_node *node)
} }
free_slot->addr = node->addr; free_slot->addr = node->addr;
free_slot->clear = false;
schedule_cdb_store(BT_MESH_CDB_NODES_PENDING); schedule_cdb_store(BT_MESH_CDB_NODES_PENDING);
} }