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;