From 7e30d3855871812d5985a17a96c0bc7264a4df5a Mon Sep 17 00:00:00 2001 From: simbit18 <101105604+simbit18@users.noreply.github.com> Date: Mon, 29 Apr 2024 16:01:56 +0200 Subject: [PATCH] drivers/sensors/Kconfig: Added if SENSORS_BME680 for common dependency sensor BME680: Added if SENSORS_BME680 --- drivers/sensors/Kconfig | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/sensors/Kconfig b/drivers/sensors/Kconfig index f6a41ba676..6b194d616e 100644 --- a/drivers/sensors/Kconfig +++ b/drivers/sensors/Kconfig @@ -384,35 +384,32 @@ config SENSORS_BME680 ---help--- Enable driver for the Bosch BME680 sensor. +if SENSORS_BME680 + config BME680_I2C_FREQUENCY int "BME680 I2C frequency" - depends on SENSORS_BME680 default 400000 config BME680_DISABLE_PRESS_MEAS bool "Disable Pressure Measurement" - depends on SENSORS_BME680 default n ---help--- If enabled, the sensor will not measure pressure. config BME680_DISABLE_HUM_MEAS bool "Disable Humidity Measurement" - depends on SENSORS_BME680 default n ---help--- If enabled, the sensor will not measure humidity. config BME680_DISABLE_GAS_MEAS bool "Disable Gas Measurement" - depends on SENSORS_BME680 default n ---help--- If enabled, the sensor will not measure gas. config BME680_ENABLE_IIR_FILTER bool "Enable IIR Filter" - depends on SENSORS_BME680 default n ---help--- Enable IIR filtering for temperature and pressure @@ -420,7 +417,6 @@ config BME680_ENABLE_IIR_FILTER config SENSORS_BME680_POLL_INTERVAL int "Polling interval in microseconds, default 3 sec" - depends on SENSORS_BME680 default 3000000 range 0 4294967295 ---help--- @@ -428,11 +424,12 @@ config SENSORS_BME680_POLL_INTERVAL config SENSORS_BME680_THREAD_STACKSIZE int "Worker thread stack size" - depends on SENSORS_BME680 default 1024 ---help--- The stack size for the worker thread. +endif # SENSORS_BME680 + config SENSORS_DHTXX bool "DHTxx humidity/temperature Sensor support" default n