Skip to content

Commit 1a458dc

Browse files
authored
Missing Reset of txQueue in requestFrom(ID,Len)
1 parent 8ac6be6 commit 1a458dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/Wire/src/Wire.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ size_t TwoWire::requestFrom(uint8_t address, size_t size, bool sendStop){
158158
rxIndex = 0;
159159
rxLength = 0;
160160
rxQueued = 0;
161+
txQueued = 0;
161162
last_error = I2C_ERROR_MEMORY;
162163
i2cFreeQueue(i2c);
163164
return cnt;

0 commit comments

Comments
 (0)