From b4b1b24c8475cfb2e0cd760ccc304eca55ba8b30 Mon Sep 17 00:00:00 2001 From: BeardyWalrus Date: Mon, 5 Oct 2020 20:13:04 -0400 Subject: [PATCH] always need double press, even if you dont have a screen --- src/nimble/BluetoothUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nimble/BluetoothUtil.cpp b/src/nimble/BluetoothUtil.cpp index 3e631aef..00c0bcd8 100644 --- a/src/nimble/BluetoothUtil.cpp +++ b/src/nimble/BluetoothUtil.cpp @@ -224,7 +224,7 @@ static int gap_event(struct ble_gap_event *event, void *arg) if (event->passkey.params.action == BLE_SM_IOACT_DISP) { pkey.action = event->passkey.params.action; DEBUG_MSG("dp: %d now:%d\n",doublepressed, now); - if ((doublepressed > 0 && (doublepressed + (30*1000)) > now) || ssd1306_found != true) + if (doublepressed > 0 && (doublepressed + (30*1000)) > now) { DEBUG_MSG("User has overridden passkey or no display available\n"); pkey.passkey = defaultBLEPin;