From 953fd682c1457f892ce32064c48d50757fcf9727 Mon Sep 17 00:00:00 2001 From: TD-er Date: Mon, 21 Apr 2025 22:18:23 +0200 Subject: [PATCH] [Build] Fix ESP8266 build which does not have Wire.end() --- src/src/Helpers/Hardware_I2C.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/src/Helpers/Hardware_I2C.cpp b/src/src/Helpers/Hardware_I2C.cpp index 49dcafc8c..2285552e5 100644 --- a/src/src/Helpers/Hardware_I2C.cpp +++ b/src/src/Helpers/Hardware_I2C.cpp @@ -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;