From 4db5b169bff1f3de5353324baef5724be4f9a6a5 Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Sat, 12 Dec 2020 23:13:49 -0500 Subject: 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. --- app/Kconfig | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'app/Kconfig') diff --git a/app/Kconfig b/app/Kconfig index ec043bf..acb288c 100644 --- a/app/Kconfig +++ b/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 -- cgit v1.2.3