Răsfoiți Sursa

ble_mesh: Free beacon timer when deinit mesh

lly 6 ani în urmă
părinte
comite
50040e8e99
1 a modificat fișierele cu 1 adăugiri și 3 ștergeri
  1. 1 3
      components/bt/esp_ble_mesh/mesh_core/main.c

+ 1 - 3
components/bt/esp_ble_mesh/mesh_core/main.c

@@ -424,9 +424,7 @@ int bt_mesh_deinit(struct bt_mesh_deinit_param *param)
     bt_mesh_trans_deinit(param->erase);
     bt_mesh_net_deinit(param->erase);
 
-    if (IS_ENABLED(CONFIG_BLE_MESH_NODE)) {
-        bt_mesh_beacon_deinit();
-    }
+    bt_mesh_beacon_deinit();
 
     if (IS_ENABLED(CONFIG_BLE_MESH_PROXY)) {
         if (IS_ENABLED(CONFIG_BLE_MESH_NODE)) {