fix(ble_mesh): avoid executing bt_mesh_host_init() more than once when using nimble

This commit is contained in:
Wu Meng Shi
2023-09-25 21:25:59 +08:00
parent 30f32f6de6
commit dc75dc6ec7

View File

@@ -87,7 +87,8 @@ int bt_mesh_host_init(void)
int rc;
if (init == true) {
return -EALREADY;
BT_WARN("Already initialized host for mesh!");
return 0;
}
rc = btc_init();