Skip to content

Commit 4227fcf

Browse files
committed
Don't send I2C restart
1 parent cf4cce5 commit 4227fcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/qwiic_i2c.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ int QwI2C::writeRegisterRegion(uint8_t i2c_address, uint8_t offset, uint8_t *dat
146146
data += nSent; // move up to remaining data in buffer
147147

148148
// only release bus if we've sent all data
149-
if(_i2cPort->endTransmission(nRemaining <= 0))
149+
if(_i2cPort->endTransmission())
150150
return -1; // the client didn't ACK
151151
}
152152

153153
return length - nRemaining;
154-
}
154+
}

0 commit comments

Comments
 (0)