]> granicus.if.org Git - esp-idf/commitdiff
Component/bt: fix bt load boned in smp
authorzhiweijian <zhiweijian@espressif.com>
Fri, 26 Jan 2018 06:38:54 +0000 (14:38 +0800)
committerzhiweijian <zhiweijian@espressif.com>
Fri, 26 Jan 2018 06:38:54 +0000 (14:38 +0800)
components/bt/bluedroid/btc/core/btc_dm.c

index 9c74a8abf20d3a570a6f62f50ea16dcc77df0904..1f6322b86fb39add800f422de5202d7bd2c2338b 100644 (file)
@@ -429,8 +429,8 @@ void btc_dm_sec_cb_handler(btc_msg_t *msg)
     switch (msg->act) {
     case BTA_DM_ENABLE_EVT: {
         btc_clear_services_mask();
-        btc_storage_load_bonded_devices();
 #if (SMP_INCLUDED == TRUE)
+        btc_storage_load_bonded_devices();
         //load the bonding device to the btm layer
         btc_storage_load_bonded_ble_devices();
 #endif  ///SMP_INCLUDED == TRUE