diff options
Diffstat (limited to 'src/app/i2cdetect/main.cc')
-rw-r--r-- | src/app/i2cdetect/main.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/app/i2cdetect/main.cc b/src/app/i2cdetect/main.cc index fb6f54c..95a34bb 100644 --- a/src/app/i2cdetect/main.cc +++ b/src/app/i2cdetect/main.cc @@ -6,9 +6,10 @@ #include "arch.h" #include "driver/gpio.h" #include "driver/stdout.h" -#if defined(MULTIPASS_ARCH_HAS_I2C) && !defined(DRIVER_SOFTI2C) +#ifdef DRIVER_HARDWARE_I2C #include "driver/i2c.h" -#else +#endif +#ifdef DRIVER_SOFTI2C #include "driver/soft_i2c.h" #endif |