[Build] Fix ESP8266 build which does not have Wire.end()

This commit is contained in:
TD-er
2025-04-21 22:18:23 +02:00
parent afe3590e5d
commit 953fd682c1
+2
View File
@@ -149,7 +149,9 @@ void I2CBegin(int8_t sda, int8_t scl, uint32_t clockFreq, uint32_t clockStretch)
return;
}
if (sda == -1 || scl == -1) {
#ifdef ESP32
Wire.end();
#endif
last_sda = sda;
last_scl = scl;
return;