From 461ffffd7757d9c8f3e0540a691e6df2866ac5a9 Mon Sep 17 00:00:00 2001 From: lly Date: Thu, 8 Apr 2021 17:29:12 +0800 Subject: [PATCH] ble_mesh: nimble: return error if init host twice --- .../bt/esp_ble_mesh/mesh_core/nimble_host/mesh_bearer_adapt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/esp_ble_mesh/mesh_core/nimble_host/mesh_bearer_adapt.c b/components/bt/esp_ble_mesh/mesh_core/nimble_host/mesh_bearer_adapt.c index 43858d0e4b..b29a7f2d8c 100644 --- a/components/bt/esp_ble_mesh/mesh_core/nimble_host/mesh_bearer_adapt.c +++ b/components/bt/esp_ble_mesh/mesh_core/nimble_host/mesh_bearer_adapt.c @@ -88,7 +88,7 @@ int bt_mesh_host_init(void) int rc; if (init == true) { - return 0; + return -EALREADY; } rc = btc_init();