summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/driver/Kconfig4
-rw-r--r--src/driver/bme680_util.cc4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/driver/Kconfig b/src/driver/Kconfig
index 22f7865..1411547 100644
--- a/src/driver/Kconfig
+++ b/src/driver/Kconfig
@@ -29,11 +29,11 @@ depends on meta_driver_i2c
config driver_bme280
bool "BME280 TPH Sensor"
-depends on meta_driver_i2c && (arch_msp430fr5969lp || arch_msp430fr5994lp)
+depends on meta_driver_i2c
config driver_bme680
bool "BME680 TPH+IAQ Sensor"
-depends on meta_driver_i2c && !driver_bme280 && (arch_arduino_nano || arch_msp430fr5969lp || arch_msp430fr5994lp)
+depends on meta_driver_i2c && !driver_bme280
config driver_ccs811
bool "CCS811 VOC Sensor"
diff --git a/src/driver/bme680_util.cc b/src/driver/bme680_util.cc
index 46b1368..f679a31 100644
--- a/src/driver/bme680_util.cc
+++ b/src/driver/bme680_util.cc
@@ -18,7 +18,11 @@ void bme680_delay_ms(uint32_t const period)
void bme680_sleep_ms(uint32_t const period)
{
+#if defined(CONFIG_arch_posix)
+ arch.delay_ms(period);
+#else
arch.sleep_ms(period);
+#endif
}
int8_t bme680_i2c_read(uint8_t dev_id, uint8_t reg_addr, uint8_t *reg_data, uint16_t len)