diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-09-25 16:06:19 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-09-25 16:06:19 +0200 |
commit | ae87fe14f8ef90d04ed27e88bd01c4b9832d2409 (patch) | |
tree | cacc33c32e7ebb1982defad00ef8bf90499b9a0a /src | |
parent | 52780526eef52d2f9bfa9838e2dd2786db053b23 (diff) |
bme680: Support SoftI2C
Diffstat (limited to 'src')
-rw-r--r-- | src/driver/bme680_util.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/driver/bme680_util.cc b/src/driver/bme680_util.cc index cb9b529..653403e 100644 --- a/src/driver/bme680_util.cc +++ b/src/driver/bme680_util.cc @@ -1,5 +1,9 @@ #include "arch.h" +#if defined(MULTIPASS_ARCH_HAS_I2C) && !defined(DRIVER_SOFTI2C) #include "driver/i2c.h" +#else +#include "driver/soft_i2c.h" +#endif #include <stdint.h> void bme680_delay_ms(uint32_t const period) |