Fix redundant call
This commit is contained in:
parent
ef00392bb8
commit
50da242f79
@ -313,7 +313,6 @@ bool bt_setup_hw() {
|
|||||||
Bluefruit.Security.setPairPasskeyCallback(bt_passkey_callback);
|
Bluefruit.Security.setPairPasskeyCallback(bt_passkey_callback);
|
||||||
Bluefruit.Periph.setConnectCallback(bt_connect_callback);
|
Bluefruit.Periph.setConnectCallback(bt_connect_callback);
|
||||||
Bluefruit.Periph.setDisconnectCallback(bt_disconnect_callback);
|
Bluefruit.Periph.setDisconnectCallback(bt_disconnect_callback);
|
||||||
Bluefruit.Security.setIOCaps(true, true, false);
|
|
||||||
Bluefruit.Security.setPairCompleteCallback(bt_pairing_complete);
|
Bluefruit.Security.setPairCompleteCallback(bt_pairing_complete);
|
||||||
const ble_gap_addr_t gap_addr = Bluefruit.getAddr();
|
const ble_gap_addr_t gap_addr = Bluefruit.getAddr();
|
||||||
char *data = (char*)malloc(BT_DEV_ADDR_LEN+1);
|
char *data = (char*)malloc(BT_DEV_ADDR_LEN+1);
|
||||||
|
Loading…
Reference in New Issue
Block a user