From fda98bbf58c0d557071d5f597dad6043698d90c3 Mon Sep 17 00:00:00 2001 From: geeksville Date: Sun, 14 Jun 2020 15:52:06 -0700 Subject: [PATCH] oops BLE auth should not change --- src/esp32/BluetoothUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/esp32/BluetoothUtil.cpp b/src/esp32/BluetoothUtil.cpp index 3ad0e80d9..8d6b5d7d3 100644 --- a/src/esp32/BluetoothUtil.cpp +++ b/src/esp32/BluetoothUtil.cpp @@ -305,8 +305,8 @@ BLEServer *initBLE(StartBluetoothPinScreenCallback startBtPinScreen, StopBluetoo pSecurity->setCapability(ESP_IO_CAP_OUT); // FIXME - really should be ESP_LE_AUTH_REQ_SC_BOND but it seems there is a bug right now causing that bonding info to be lost - // occasionally - pSecurity->setAuthenticationMode(ESP_LE_AUTH_BOND); + // occasionally? + pSecurity->setAuthenticationMode(ESP_LE_AUTH_REQ_SC_BOND); pSecurity->setInitEncryptionKey(ESP_BLE_ENC_KEY_MASK | ESP_BLE_ID_KEY_MASK);