From 2ae6eedb308a753d9e86817413a8896403661050 Mon Sep 17 00:00:00 2001 From: lly Date: Wed, 4 Mar 2020 10:43:33 +0800 Subject: [PATCH] ble_mesh: Free beacon timer when deinit mesh --- components/bt/esp_ble_mesh/mesh_core/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/bt/esp_ble_mesh/mesh_core/main.c b/components/bt/esp_ble_mesh/mesh_core/main.c index dcec933db..34bed0815 100644 --- a/components/bt/esp_ble_mesh/mesh_core/main.c +++ b/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)) {