forked from kofal.net/zmk
refactor(splits): Ability to override split role.
* Move central/peripheral setting to Kconfig.defconfig files to allow left/right .conf files to override central/peripheral role for splits.
This commit is contained in:
15
app/Kconfig
15
app/Kconfig
@@ -83,7 +83,6 @@ menu "Split Support"
|
||||
|
||||
config ZMK_SPLIT
|
||||
bool "Split keyboard support"
|
||||
default n
|
||||
|
||||
if ZMK_SPLIT
|
||||
|
||||
@@ -95,19 +94,12 @@ config ZMK_SPLIT_BLE
|
||||
|
||||
if ZMK_SPLIT_BLE
|
||||
|
||||
choice ZMK_SPLIT_BLE_ROLE
|
||||
bool "BLE Role For Split Communication"
|
||||
default ZMK_SPLIT_BLE_ROLE_CENTRAL
|
||||
|
||||
config ZMK_SPLIT_BLE_ROLE_CENTRAL
|
||||
bool "Central"
|
||||
select BT_CENTRAL
|
||||
select BT_GATT_CLIENT
|
||||
|
||||
config ZMK_SPLIT_BLE_ROLE_PERIPHERAL
|
||||
bool "Peripheral"
|
||||
|
||||
if ZMK_SPLIT_BLE_ROLE_PERIPHERAL
|
||||
if !ZMK_SPLIT_BLE_ROLE_CENTRAL
|
||||
|
||||
config ZMK_USB
|
||||
default n
|
||||
@@ -121,12 +113,9 @@ config BT_MAX_CONN
|
||||
config BT_GAP_AUTO_UPDATE_CONN_PARAMS
|
||||
default n
|
||||
|
||||
#ZMK_SPLIT_BLE_ROLE_PERIPHERAL
|
||||
#!ZMK_SPLIT_BLE_ROLE_CENTRAL
|
||||
endif
|
||||
|
||||
#ZMK_SPLIT_BLE_ROLE
|
||||
endchoice
|
||||
|
||||
#ZMK_SPLIT_BLE
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user