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/boards/shields/lily58/Kconfig.defconfig | 7 +++++++ app/boards/shields/lily58/lily58_left.conf | 3 --- app/boards/shields/lily58/lily58_right.conf | 3 +-- 3 files changed, 8 insertions(+), 5 deletions(-) (limited to 'app/boards/shields/lily58') diff --git a/app/boards/shields/lily58/Kconfig.defconfig b/app/boards/shields/lily58/Kconfig.defconfig index 81feefd..915cc70 100644 --- a/app/boards/shields/lily58/Kconfig.defconfig +++ b/app/boards/shields/lily58/Kconfig.defconfig @@ -4,6 +4,9 @@ if SHIELD_LILY58_LEFT config ZMK_KEYBOARD_NAME default "Lily58 Left" +config ZMK_SPLIT_BLE_ROLE_CENTRAL + default y + endif if SHIELD_LILY58_RIGHT @@ -15,6 +18,9 @@ endif if SHIELD_LILY58_LEFT || SHIELD_LILY58_RIGHT +config ZMK_SPLIT + default y + if ZMK_DISPLAY config I2C @@ -52,3 +58,4 @@ endchoice endif # LVGL endif + diff --git a/app/boards/shields/lily58/lily58_left.conf b/app/boards/shields/lily58/lily58_left.conf index 6ff95d5..24f8d77 100644 --- a/app/boards/shields/lily58/lily58_left.conf +++ b/app/boards/shields/lily58/lily58_left.conf @@ -1,6 +1,3 @@ # Uncomment to enable encoder # CONFIG_EC11=y # CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y - -CONFIG_ZMK_SPLIT=y -CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y \ No newline at end of file diff --git a/app/boards/shields/lily58/lily58_right.conf b/app/boards/shields/lily58/lily58_right.conf index 990cf7c..8b13789 100644 --- a/app/boards/shields/lily58/lily58_right.conf +++ b/app/boards/shields/lily58/lily58_right.conf @@ -1,2 +1 @@ -CONFIG_ZMK_SPLIT=y -CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y + -- cgit v1.2.3