From dee3e530de3a9d4f222ff1fbff716696fb819003 Mon Sep 17 00:00:00 2001 From: Girts Folkmanis Date: Sun, 22 Mar 2020 19:18:49 -0700 Subject: [PATCH] fix #52: bluetooth not pairing Silly type error on my part - PIN was always truncated to lower 8 bits. :grimacing: Tested: Pairing now works from both nRF Connect and phone. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 08c302a7..127a2314 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -260,7 +260,7 @@ void initBluetooth() // Note: these callbacks might be coming in from a different thread. BLEServer *serve = initBLE( - [](uint8_t pin) { + [](uint32_t pin) { powerFSM.trigger(EVENT_BLUETOOTH_PAIR); screen.startBluetoothPinScreen(pin); },