From 877b407c8c0fd49214bc17795536bd3d986e46b6 Mon Sep 17 00:00:00 2001 From: Tian Hao Date: Tue, 21 Mar 2017 17:17:07 +0800 Subject: [PATCH] component/bt : fix blufi bug of sec_mode reset --- components/bt/bluedroid/btc/profile/esp/blufi/blufi_prf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/bt/bluedroid/btc/profile/esp/blufi/blufi_prf.c b/components/bt/bluedroid/btc/profile/esp/blufi/blufi_prf.c index bf9ba35a04..7379192577 100644 --- a/components/bt/bluedroid/btc/profile/esp/blufi/blufi_prf.c +++ b/components/bt/bluedroid/btc/profile/esp/blufi/blufi_prf.c @@ -268,6 +268,7 @@ static void blufi_profile_cb(tBTA_GATTS_EVT event, tBTA_GATTS *p_data) blufi_env.conn_id = p_data->conn.conn_id; blufi_env.is_connected = false; blufi_env.recv_seq = blufi_env.send_seq = 0; + blufi_env.sec_mode = 0x0; msg.sig = BTC_SIG_API_CB; msg.pid = BTC_PID_BLUFI;