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

This commit is contained in:
Wu Meng Shi
2023-10-07 14:29:16 +08:00
committed by Jiang Jiang Jian
parent b089f6e038
commit 9dc12cb8c2

View File

@@ -88,7 +88,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();