We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f1227f commit 684c3e8Copy full SHA for 684c3e8
libraries/Wire/src/Wire.cpp
@@ -59,17 +59,17 @@ void TwoWire::begin(uint8_t address, bool generalCall)
59
{
60
rxBufferIndex = 0;
61
rxBufferLength = 0;
62
+ rxBuffer = nullptr;
63
+ rxBufferAllocated = 0;
64
resetRxBuffer();
65
66
txBufferIndex = 0;
67
txBufferLength = 0;
- resetTxBuffer();
-
68
- rxBuffer = nullptr;
69
- rxBufferAllocated = 0;
70
txAddress = 0;
71
txBuffer = nullptr;
72
txBufferAllocated = 0;
+ resetTxBuffer();
+
73
_i2c.__this = (void *)this;
74
user_onRequest = NULL;
75
transmitting = 0;
0 commit comments