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:
parent
2836513cd6
commit
7a737a0084
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue