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
parent 0d23337766
commit 0529949a4e

View file

@ -528,8 +528,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