File tree 2 files changed +18
-3
lines changed
2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,18 @@ config ZMK_SPLIT_BLE_CENTRAL_SPLIT_RUN_QUEUE_SIZE
33
33
int "Max number of behavior run events to queue to send to the peripheral(s)"
34
34
default 5
35
35
36
+ config ZMK_SPLIT_BLE_PREF_INT
37
+ int "Connection interval to use for split central/peripheral connection"
38
+ default 6
39
+
40
+ config ZMK_SPLIT_BLE_PREF_LATENCY
41
+ int "Latency to use for split central/peripheral connection"
42
+ default 30
43
+
44
+ config ZMK_SPLIT_BLE_PREF_TIMEOUT
45
+ int "Supervision timeout to use for split central/peripheral connection"
46
+ default 400
47
+
36
48
endif # ZMK_SPLIT_ROLE_CENTRAL
37
49
38
50
if !ZMK_SPLIT_ROLE_CENTRAL
@@ -58,8 +70,9 @@ config BT_MAX_PAIRED
58
70
config BT_MAX_CONN
59
71
default 1
60
72
61
- config BT_PERIPHERAL_PREF_MAX_INT
62
- default 6
73
+ # Allow central to specify connection parameters.
74
+ config BT_GAP_AUTO_UPDATE_CONN_PARAMS
75
+ default n
63
76
64
77
#!ZMK_SPLIT_ROLE_CENTRAL
65
78
endif
Original file line number Diff line number Diff line change @@ -383,7 +383,9 @@ static bool split_central_eir_found(const bt_addr_le_t *addr) {
383
383
struct peripheral_slot * slot = & peripherals [slot_idx ];
384
384
385
385
LOG_DBG ("Initiating new connnection" );
386
- struct bt_le_conn_param * param = BT_LE_CONN_PARAM (0x0006 , 0x0006 , 30 , 400 );
386
+ struct bt_le_conn_param * param =
387
+ BT_LE_CONN_PARAM (CONFIG_ZMK_SPLIT_BLE_PREF_INT , CONFIG_ZMK_SPLIT_BLE_PREF_INT ,
388
+ CONFIG_ZMK_SPLIT_BLE_PREF_LATENCY , CONFIG_ZMK_SPLIT_BLE_PREF_TIMEOUT );
387
389
err = bt_conn_le_create (addr , BT_CONN_LE_CREATE_CONN , param , & slot -> conn );
388
390
if (err < 0 ) {
389
391
LOG_ERR ("Create conn failed (err %d) (create conn? 0x%04x)" , err , BT_HCI_OP_LE_CREATE_CONN );
You can’t perform that action at this time.
0 commit comments