This commit is contained in:
hathach committed 2018-10-18 18:07:53 +07:00
1 parent 206e28d501
commit b24f397d5e
1 file changed
+3 -3
+3 -3
View File
@@ -408,6 +408,9 @@ 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();
@@ -433,9 +436,6 @@ err_t AdafruitBluefruit::begin(uint8_t prph_count, uint8_t central_count)
// 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;
}