From 06b468399377af0d9179d1d26358e3aa327b7a19 Mon Sep 17 00:00:00 2001 From: "jacob.eva" Date: Sat, 31 Aug 2024 21:46:07 +0100 Subject: [PATCH] Fix BLE pairing state on NRF52 --- Bluetooth.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bluetooth.h b/Bluetooth.h index 18b3051..6329964 100644 --- a/Bluetooth.h +++ b/Bluetooth.h @@ -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();