summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/driver/lm75.cc4
-rw-r--r--src/driver/mmsimple.cc4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/driver/lm75.cc b/src/driver/lm75.cc
index 0bad4a7..9f20e9b 100644
--- a/src/driver/lm75.cc
+++ b/src/driver/lm75.cc
@@ -1,5 +1,9 @@
#include "driver/lm75.h"
+#if defined(MULTIPASS_ARCH_HAS_I2C) && !defined(DRIVER_SOFTI2C)
#include "driver/i2c.h"
+#else
+#include "driver/soft_i2c.h"
+#endif
float LM75::getTemp()
{
diff --git a/src/driver/mmsimple.cc b/src/driver/mmsimple.cc
index d47d10d..b2b2708 100644
--- a/src/driver/mmsimple.cc
+++ b/src/driver/mmsimple.cc
@@ -1,5 +1,9 @@
#include "driver/mmsimple.h"
+#if defined(MULTIPASS_ARCH_HAS_I2C) && !defined(DRIVER_SOFTI2C)
#include "driver/i2c.h"
+#else
+#include "driver/soft_i2c.h"
+#endif
void MicroMoodySimple::sendCmd(unsigned char byte)
{