From 3e489d40ff7688a190658f7ecd603249541fabb4 Mon Sep 17 00:00:00 2001 From: lly Date: Mon, 2 Sep 2019 14:36:24 +0800 Subject: [PATCH] ble_mesh: rename reset_link() to reset_adv_link() --- components/bt/esp_ble_mesh/mesh_core/prov.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/bt/esp_ble_mesh/mesh_core/prov.c b/components/bt/esp_ble_mesh/mesh_core/prov.c index c10aaba8e..51555678a 100644 --- a/components/bt/esp_ble_mesh/mesh_core/prov.c +++ b/components/bt/esp_ble_mesh/mesh_core/prov.c @@ -281,7 +281,7 @@ static void prov_clear_tx(void) free_segments(); } -static void reset_link(void) +static void reset_adv_link(void) { prov_clear_tx(); @@ -1261,7 +1261,7 @@ static void prov_retransmit(struct k_work *work) #endif if (k_uptime_get() - link.tx.start > timeout) { BT_WARN("Node timeout, giving up transaction"); - reset_link(); + reset_adv_link(); return; } @@ -1341,7 +1341,7 @@ static void link_close(struct prov_rx *rx, struct net_buf_simple *buf) { BT_DBG("len %u", buf->len); - reset_link(); + reset_adv_link(); } static void gen_prov_ctl(struct prov_rx *rx, struct net_buf_simple *buf)