refactor(split): allow central to define connection parameters

Fixes #1614
This commit is contained in:
Xudong Zheng
2023-05-19 18:41:08 -04:00
committed by Pete Johanson
parent 5763558a02
commit e686fce4d9
2 changed files with 18 additions and 3 deletions

View File

@@ -33,6 +33,18 @@ config ZMK_SPLIT_BLE_CENTRAL_SPLIT_RUN_QUEUE_SIZE
int "Max number of behavior run events to queue to send to the peripheral(s)"
default 5
config ZMK_SPLIT_BLE_PREF_INT
int "Connection interval to use for split central/peripheral connection"
default 6
config ZMK_SPLIT_BLE_PREF_LATENCY
int "Latency to use for split central/peripheral connection"
default 30
config ZMK_SPLIT_BLE_PREF_TIMEOUT
int "Supervision timeout to use for split central/peripheral connection"
default 400
endif # ZMK_SPLIT_ROLE_CENTRAL
if !ZMK_SPLIT_ROLE_CENTRAL
@@ -58,8 +70,9 @@ config BT_MAX_PAIRED
config BT_MAX_CONN
default 1
config BT_PERIPHERAL_PREF_MAX_INT
default 6
# Allow central to specify connection parameters.
config BT_GAP_AUTO_UPDATE_CONN_PARAMS
default n
#!ZMK_SPLIT_ROLE_CENTRAL
endif