diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/app/datalogger/main.cc | 2 | ||||
-rw-r--r-- | src/app/i2cdetect/main.cc | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/app/datalogger/main.cc b/src/app/datalogger/main.cc index 2d8a8e6..0d2f1d8 100644 --- a/src/app/datalogger/main.cc +++ b/src/app/datalogger/main.cc @@ -7,7 +7,7 @@ #include "driver/gpio.h" #include "driver/stdout.h" -#if defined(DRIVER_I2C) +#if defined(CONFIG_meta_driver_i2c) #include "driver/i2c.h" #elif defined(CONFIG_driver_softi2c) #include "driver/soft_i2c.h" diff --git a/src/app/i2cdetect/main.cc b/src/app/i2cdetect/main.cc index ab954d7..de524a6 100644 --- a/src/app/i2cdetect/main.cc +++ b/src/app/i2cdetect/main.cc @@ -6,10 +6,9 @@ #include "arch.h" #include "driver/gpio.h" #include "driver/stdout.h" -#ifdef DRIVER_HARDWARE_I2C +#if defined(CONFIG_meta_driver_i2c) #include "driver/i2c.h" -#endif -#ifdef CONFIG_driver_softi2c +#elif defined(CONFIG_driver_softi2c) #include "driver/soft_i2c.h" #endif |