Bluetooth: Mesh: Restore default device configuration on reset

This commit fixes an issue where bt_mesh_reset() call just erases all
mesh flags set at the initialization instead of restoring them and
thus disabling some features until the board reboot.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
This commit is contained in:
Pavel Vasilyev 2021-06-23 16:27:35 +02:00 committed by Johan Hedberg
commit 6c9411656c
5 changed files with 7 additions and 6 deletions

View file

@ -2442,7 +2442,7 @@ static void mod_reset(struct bt_mesh_model *mod, struct bt_mesh_elem *elem,
}
}
void bt_mesh_cfg_reset(void)
void bt_mesh_model_reset(void)
{
bt_mesh_model_foreach(mod_reset, NULL);
}