fix #52: bluetooth not pairing

Silly type error on my part - PIN was always truncated to lower 8 bits.
😬

Tested: Pairing now works from both nRF Connect and phone.
This commit is contained in:
Girts Folkmanis 2020-03-22 19:18:49 -07:00
parent 992b525588
commit dee3e530de

View File

@ -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);
},