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.
1.2-legacy
Girts Folkmanis 2020-03-22 19:18:49 -07:00
rodzic 992b525588
commit dee3e530de
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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