summaryrefslogtreecommitdiff
path: root/app/boards/shields/sofle
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-12-12 23:13:49 -0500
committerPete Johanson <peter@peterjohanson.com>2020-12-28 10:16:24 -0500
commit4db5b169bff1f3de5353324baef5724be4f9a6a5 (patch)
treec690932524a26fb28e20528fe1d2b1745dae195a /app/boards/shields/sofle
parent842aa5a842e117b7b00e49258ca0bde44dc0c789 (diff)
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.
Diffstat (limited to 'app/boards/shields/sofle')
-rw-r--r--app/boards/shields/sofle/Kconfig.defconfig7
-rw-r--r--app/boards/shields/sofle/sofle_left.conf3
-rw-r--r--app/boards/shields/sofle/sofle_right.conf3
3 files changed, 7 insertions, 6 deletions
diff --git a/app/boards/shields/sofle/Kconfig.defconfig b/app/boards/shields/sofle/Kconfig.defconfig
index 6a4f863..cde094a 100644
--- a/app/boards/shields/sofle/Kconfig.defconfig
+++ b/app/boards/shields/sofle/Kconfig.defconfig
@@ -5,6 +5,10 @@ if SHIELD_SOFLE_LEFT
config ZMK_KEYBOARD_NAME
default "Sofle Left"
+
+config ZMK_SPLIT_BLE_ROLE_CENTRAL
+ default y
+
endif
if SHIELD_SOFLE_RIGHT
@@ -15,6 +19,9 @@ endif
if SHIELD_SOFLE_LEFT || SHIELD_SOFLE_RIGHT
+config ZMK_SPLIT
+ default y
+
if ZMK_DISPLAY
config I2C
diff --git a/app/boards/shields/sofle/sofle_left.conf b/app/boards/shields/sofle/sofle_left.conf
index bbac735..e813720 100644
--- a/app/boards/shields/sofle/sofle_left.conf
+++ b/app/boards/shields/sofle/sofle_left.conf
@@ -1,5 +1,2 @@
# Copyright (c) 2020 Ryan Cross
# SPDX-License-Identifier: MIT
-
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y
diff --git a/app/boards/shields/sofle/sofle_right.conf b/app/boards/shields/sofle/sofle_right.conf
index ca5de38..e813720 100644
--- a/app/boards/shields/sofle/sofle_right.conf
+++ b/app/boards/shields/sofle/sofle_right.conf
@@ -1,5 +1,2 @@
# Copyright (c) 2020 Ryan Cross
# SPDX-License-Identifier: MIT
-
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y