fix(bluetooth): Passkey pairing improvements.

* Capture the last 6 entered digits, and then require pressing
   Enter/Return to submit the entered digits. This matches the
   messaging shown on hosts regarding how to complete pairing.
* Fix the wording on the Kconfig menu item to accurately describe
  the feature.
This commit is contained in:
Peter Johanson
2023-06-03 02:53:20 +00:00
committed by Pete Johanson
parent ace11e327f
commit 19d883cdfe
3 changed files with 34 additions and 23 deletions

View File

@@ -160,8 +160,9 @@ config BT_DEVICE_APPEARANCE
default 961
config ZMK_BLE_PASSKEY_ENTRY
bool "Experimental: Requiring typing passkey from host to pair BLE connection"
bool "Require passkey entry on the keyboard to complete pairing"
default n
select RING_BUFFER
config BT_PERIPHERAL_PREF_MIN_INT
default 6