File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ size_t TwoWire::write(uint8_t data)
202
202
// put byte in tx buffer
203
203
txBuffer[txBufferIndex] = data;
204
204
++txBufferIndex;
205
- // update amount in buffer
205
+ // update amount in buffer
206
206
txBufferLength = txBufferIndex;
207
207
}else {
208
208
// in slave send mode
@@ -244,7 +244,7 @@ int TwoWire::available(void)
244
244
int TwoWire::read (void )
245
245
{
246
246
int value = -1 ;
247
-
247
+
248
248
// get each successive byte on each call
249
249
if (rxBufferIndex < rxBufferLength){
250
250
value = rxBuffer[rxBufferIndex];
@@ -260,7 +260,7 @@ int TwoWire::read(void)
260
260
int TwoWire::peek (void )
261
261
{
262
262
int value = -1 ;
263
-
263
+
264
264
if (rxBufferIndex < rxBufferLength){
265
265
value = rxBuffer[rxBufferIndex];
266
266
}
@@ -289,7 +289,7 @@ void TwoWire::onReceiveService(uint8_t* inBytes, int numBytes)
289
289
// copy twi rx buffer into local read buffer
290
290
// this enables new reads to happen in parallel
291
291
for (uint8_t i = 0 ; i < numBytes; ++i){
292
- rxBuffer[i] = inBytes[i];
292
+ rxBuffer[i] = inBytes[i];
293
293
}
294
294
// set rx iterator vars
295
295
rxBufferIndex = 0 ;
You can’t perform that action at this time.
0 commit comments