From 98a3d97722aa3e27ce92171ef7b2730bef82428f Mon Sep 17 00:00:00 2001 From: Peter Johanson Date: Thu, 26 May 2022 16:53:41 +0000 Subject: [PATCH] refactor(config): Select SENSOR as needed. * Don't force on SENSOR Kconfig setting unless needed based on the detected DT. --- app/Kconfig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Kconfig b/app/Kconfig index f04e612e1f4e..d21dace420f5 100644 --- a/app/Kconfig +++ b/app/Kconfig @@ -469,8 +469,10 @@ config ZMK_WPM bool "Calculate WPM" default n -config SENSOR - default y +DT_COMPAT_ZMK_KEYMAP_SENSORS := zmk,keymap-sensors +config ZMK_KEYMAP_SENSORS + def_bool $(dt_compat_enabled,$(DT_COMPAT_ZMK_KEYMAP_SENSORS)) + select SENSOR choice CBPRINTF_IMPLEMENTATION default CBPRINTF_NANO