Просмотр исходного кода

ble_mesh: nimble: return error if init host twice

lly 4 лет назад
Родитель
Сommit
fe9efd2770

+ 1 - 1
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();