Skip to content

Commit 551f908

Browse files
jmchiappafpistm
andauthored
Update libraries/Wire/src/Wire.cpp
Co-Authored-By: Frederic Pillon <[email protected]>
1 parent b76a180 commit 551f908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Wire/src/Wire.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ uint8_t TwoWire::endTransmission(uint8_t sendStop)
218218
{
219219
int8_t ret = 4;
220220
// check transfer options and store it in the I2C handle
221-
if (sendStop == false) {
221+
if (sendStop == 0) {
222222
_i2c.handle.XferOptions = I2C_FIRST_FRAME;
223223
} else {
224224
_i2c.handle.XferOptions = I2C_FIRST_AND_LAST_FRAME;

0 commit comments

Comments
 (0)