mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
fix(ble_mesh): avoid executing bt_mesh_host_init() more than once when using nimble (v4.4)
This commit is contained in:
committed by
Jiang Jiang Jian
parent
67a0939231
commit
0e0beeb591
@ -88,7 +88,8 @@ int bt_mesh_host_init(void)
|
|||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
if (init == true) {
|
if (init == true) {
|
||||||
return -EALREADY;
|
BT_WARN("Already initialized host for mesh!");
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = btc_init();
|
rc = btc_init();
|
||||||
|
Reference in New Issue
Block a user