refactor(config): Select SENSOR as needed.

* Don't force on SENSOR Kconfig setting unless
  needed based on the detected DT.
This commit is contained in:
Peter Johanson 2022-05-26 16:53:41 +00:00 committed by Pete Johanson
parent 295ed83409
commit f0f7e2081b

View File

@ -532,8 +532,11 @@ config ZMK_WPM
bool "Calculate WPM"
default n
config SENSOR
config ZMK_KEYMAP_SENSORS
bool "Enable Keymap Sensors support"
default y
depends on DT_HAS_ZMK_KEYMAP_SENSORS_ENABLED
select SENSOR
if ZMK_KEYMAP_SENSORS