diff options
| author | Birte Kristina Friesel <derf@finalrewind.org> | 2026-01-09 23:06:32 +0100 |
|---|---|---|
| committer | Birte Kristina Friesel <derf@finalrewind.org> | 2026-01-09 23:06:32 +0100 |
| commit | 11533e773394511215bfebdf413a1139cddb150d (patch) | |
| tree | 6034260a96430f489e552d95eccd1cc035d00396 /include | |
| parent | 3ed979939e720abba179beb3e9e4889c11980a5b (diff) | |
softi2c: use "softi2c" global name if i2c is already active
Diffstat (limited to 'include')
| -rw-r--r-- | include/driver/soft_i2c.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/driver/soft_i2c.h b/include/driver/soft_i2c.h index a5da1f6..15784d9 100644 --- a/include/driver/soft_i2c.h +++ b/include/driver/soft_i2c.h @@ -37,6 +37,8 @@ class SoftI2C { #ifndef DRIVER_HARDWARE_I2C extern SoftI2C i2c; +#else +extern SoftI2C softi2c; #endif #endif |
