Skip to content

Commit

Permalink
even more!
Browse files Browse the repository at this point in the history
  • Loading branch information
kounocom committed Jan 19, 2025
1 parent 69de1c0 commit 5f2cba3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/i2cscan/i2cscan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ namespace I2CSCAN
if (currentAddress == 1) {
#if ESP32
Wire.end();
#endif
if (!selectNextPort()) {
return;
}
#endif
}

Wire.beginTransmission(currentAddress);
Expand All @@ -111,7 +108,7 @@ namespace I2CSCAN
}

currentAddress++;
if (currentAddress < 127) {
if (currentAddress <= 127) {
return;
}

Expand Down

0 comments on commit 5f2cba3

Please sign in to comment.