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

index 6ec2b004fb868a6e2d458a04a3b86c8ad6c3b12b..7e3ee2246db6e3c33638c8857331141601d6c1ab 100644 (file)
@@ -426,8 +426,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