Bluetooth: Mesh: Allow custom RPL use mesh settings work
This change allows a custom RPL use pending mechanism and the mesh settings work to store pending RPL entries. `bt_mesh_rpl_pending_store` is a public API and should be implemented anyway. The custom RPL implementation has to trigger settings with the `BT_MESH_SETTINGS_RPL_PENDING` flag to ask the mesh settings work to call `bt_mesh_rpl_pending_store`. Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
This commit is contained in:
parent
22ef2bed33
commit
bcd2aba4d7
|
@ -186,8 +186,7 @@ static void store_pending(struct k_work *work)
|
|||
{
|
||||
LOG_DBG("");
|
||||
|
||||
if (IS_ENABLED(CONFIG_BT_MESH_RPL_STORAGE_MODE_SETTINGS) &&
|
||||
atomic_test_and_clear_bit(pending_flags, BT_MESH_SETTINGS_RPL_PENDING)) {
|
||||
if (atomic_test_and_clear_bit(pending_flags, BT_MESH_SETTINGS_RPL_PENDING)) {
|
||||
bt_mesh_rpl_pending_store(BT_MESH_ADDR_ALL_NODES);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue