Skip to content

Commit 6b1c62e

Browse files
committed
Wire: move TX and RX buffer index and length to uint16_t
Prepare introduction of max TX buffer length Signed-off-by: Alexandre Bourdiol <[email protected]>
1 parent 83c622e commit 6b1c62e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: libraries/Wire/src/Wire.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ extern "C" {
3636
class TwoWire : public Stream {
3737
private:
3838
uint8_t *rxBuffer;
39-
uint8_t rxBufferAllocated;
40-
uint8_t rxBufferIndex;
41-
uint8_t rxBufferLength;
39+
uint16_t rxBufferAllocated;
40+
uint16_t rxBufferIndex;
41+
uint16_t rxBufferLength;
4242

4343
uint8_t txAddress;
4444
uint8_t *txBuffer;
45-
uint8_t txBufferAllocated;
46-
uint8_t txDataSize;
45+
uint16_t txBufferAllocated;
46+
uint16_t txDataSize;
4747

4848
uint8_t transmitting;
4949

0 commit comments

Comments
 (0)