summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2026-01-09 23:06:32 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2026-01-09 23:06:32 +0100
commit11533e773394511215bfebdf413a1139cddb150d (patch)
tree6034260a96430f489e552d95eccd1cc035d00396 /src
parent3ed979939e720abba179beb3e9e4889c11980a5b (diff)
softi2c: use "softi2c" global name if i2c is already activeHEADmain
Diffstat (limited to 'src')
-rw-r--r--src/driver/soft_i2c.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/driver/soft_i2c.cc b/src/driver/soft_i2c.cc
index 7369b2d..7bf030f 100644
--- a/src/driver/soft_i2c.cc
+++ b/src/driver/soft_i2c.cc
@@ -239,4 +239,8 @@ ON_TIMER_INTERRUPT_tail
SoftI2C i2c(GPIO::CONFIG_driver_softi2c_sda, GPIO::CONFIG_driver_softi2c_scl);
+#else
+
+SoftI2C softi2c(GPIO::CONFIG_driver_softi2c_sda, GPIO::CONFIG_driver_softi2c_scl);
+
#endif /* !DRIVER_HARDWARE_I2C */