mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-09-15 11:05:08 +00:00
[Build] Fix ESP8266 build which does not have Wire.end()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user