Fix BLE pairing state on NRF52

This commit is contained in:
jacob.eva 2024-08-31 21:46:07 +01:00
parent 139cf7e3bf
commit 06b4683993
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E

View File

@ -339,7 +339,7 @@ bool bt_setup_hw() {
Bluefruit.Security.setMITM(true);
Bluefruit.Security.setPairPasskeyCallback(bt_passkey_callback);
Bluefruit.Periph.setConnectCallback(bt_connect_callback);
Bluefruit.Security.setSecuredCallback(bt_connect_callback);
Bluefruit.Periph.setDisconnectCallback(bt_disconnect_callback);
Bluefruit.Security.setPairCompleteCallback(bt_pairing_complete);
const ble_gap_addr_t gap_addr = Bluefruit.getAddr();