From 53816539f11f413501051520c7288cca7cad214e Mon Sep 17 00:00:00 2001 From: Gabor Hornyak Date: Fri, 15 Jul 2022 20:01:52 +0000 Subject: [PATCH] refactor: use 'select BT_BAS if ...' syntax --- app/Kconfig | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/Kconfig b/app/Kconfig index bc37e367..843c7db7 100644 --- a/app/Kconfig +++ b/app/Kconfig @@ -101,6 +101,7 @@ menuconfig ZMK_BLE select BT_SMP_SC_PAIR_ONLY select BT_SMP_APP_PAIRING_ACCEPT select BT_PERIPHERAL + select BT_BAS if !ZMK_SPLIT_ROLE_CENTRAL select BT_DIS select BT_SETTINGS select SETTINGS @@ -156,13 +157,6 @@ config BT_PERIPHERAL_PREF_LATENCY config BT_PERIPHERAL_PREF_TIMEOUT default 400 -if (CONFIG_ZMK_BLE && !CONFIG_ZMK_SPLIT_ROLE_CENTRAL) - -config BT_BAS - default y - -endif - #ZMK_BLE endif