summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-04-10 11:09:57 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-04-10 11:09:57 +0200
commite585d5246b7391d35a5dc4b1ce2f79a310570f5e (patch)
tree198056eb5108053d18606fb3ffe0986d5babaa7c /src/app
parentea1f28f59505579d90f0e51b1023c72f6fbb2ed8 (diff)
Allow software and hardware i2c to be used together (e.g. on different pins)
Diffstat (limited to 'src/app')
-rw-r--r--src/app/i2cdetect/main.cc5
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