From 11533e773394511215bfebdf413a1139cddb150d Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 9 Jan 2026 23:06:32 +0100 Subject: softi2c: use "softi2c" global name if i2c is already active --- include/driver/soft_i2c.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/driver') 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 -- cgit v1.2.3