mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 09:09:10 -04:00
ble_mesh: nimble: return error if init host twice
This commit is contained in:
parent
44b2b7c22c
commit
a1535faad5
@ -88,7 +88,7 @@ int bt_mesh_host_init(void)
|
||||
int rc;
|
||||
|
||||
if (init == true) {
|
||||
return 0;
|
||||
return -EALREADY;
|
||||
}
|
||||
|
||||
rc = btc_init();
|
||||
|
Loading…
x
Reference in New Issue
Block a user