diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-12-20 20:02:26 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-12-20 20:02:26 +0100 |
commit | fba865b20ca49565b932bdedfa10b40ec244db7c (patch) | |
tree | 138a7cacaa398b911db3c2b49061192a64931aa4 /src | |
parent | 277600fd5179f93f3ed011264d5a8d877312f252 (diff) |
bme280 and bme680 work just fine on posix
Diffstat (limited to 'src')
-rw-r--r-- | src/driver/Kconfig | 4 | ||||
-rw-r--r-- | src/driver/bme680_util.cc | 4 |
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) |