move bond_init() to correct place

This commit is contained in:
hathach committed 2018-10-19 14:39:57 +07:00
1 parent dbe1d6a6d4
commit 61a9923b5e
1 file changed
+3 -3
+3 -3
View File
@@ -408,9 +408,6 @@ err_t AdafruitBluefruit::begin(uint8_t prph_count, uint8_t central_count)
sd_power_usbremoved_enable(true);
#endif
// Initialize bonding
bond_init();
/*------------- DFU OTA as built-in service -------------*/
_dfu_svc.begin();
@@ -436,6 +433,9 @@ bond_init();
// Create Timer for led advertising blinky
_led_blink_th = xTimerCreate(NULL, ms2tick(CFG_ADV_BLINKY_INTERVAL/2), true, NULL, bluefruit_blinky_cb);
// Initialize bonding
bond_init();
return ERROR_NONE;
}