From 50ccaede605bdb3a0f8319ccd52ff4774cd3d19e Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 10 Oct 2024 17:10:01 +0200 Subject: [PATCH] Fix correct second I2C bus --- tasmota/tasmota_support/support_a_i2c.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasmota/tasmota_support/support_a_i2c.ino b/tasmota/tasmota_support/support_a_i2c.ino index 4a6aef726..11cd6238e 100644 --- a/tasmota/tasmota_support/support_a_i2c.ino +++ b/tasmota/tasmota_support/support_a_i2c.ino @@ -18,8 +18,10 @@ #endif // ESP8266 #ifdef ESP32 +#if SOC_I2C_NUM > 1 #define USE_I2C_BUS2 -#endif +#endif // SOC_I2C_NUM +#endif // ESP32 const uint8_t I2C_RETRY_COUNTER = 3;