Skip to content

Commit 0940ee6

Browse files
committed
release I2C bus after sending read command
Wire::endTransmission() has an optional argument that defines whether the bus is released or not. At the time of writing the library, we set it to hold the bus. This causes issues on other platforms.
1 parent ed9485c commit 0940ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SHTSensor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ bool SHTI2cSensor::readFromI2c(uint8_t i2cAddress,
6767
}
6868
}
6969

70-
if (Wire.endTransmission(false) != 0) {
70+
if (Wire.endTransmission() != 0) {
7171
return false;
7272
}
7373

0 commit comments

Comments
 (0)