From 5f2cba34066dc03a7cb8997eae6b89a8dcc70e5c Mon Sep 17 00:00:00 2001 From: kounocom <71262281+kounocom@users.noreply.github.com> Date: Sun, 19 Jan 2025 09:37:34 +0200 Subject: [PATCH] even more! --- lib/i2cscan/i2cscan.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/i2cscan/i2cscan.cpp b/lib/i2cscan/i2cscan.cpp index dabdb8e2..00ab4d0d 100644 --- a/lib/i2cscan/i2cscan.cpp +++ b/lib/i2cscan/i2cscan.cpp @@ -89,10 +89,7 @@ namespace I2CSCAN if (currentAddress == 1) { #if ESP32 Wire.end(); -#endif - if (!selectNextPort()) { - return; - } +#endif } Wire.beginTransmission(currentAddress); @@ -111,7 +108,7 @@ namespace I2CSCAN } currentAddress++; - if (currentAddress < 127) { + if (currentAddress <= 127) { return; }