Skip to content

Commit

Permalink
Remove redundant whitespace on Wire.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
asukiaaa committed Sep 5, 2020
1 parent 694e5e6 commit 4c00b60
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions avr/libraries/Wire/src/Wire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ size_t TwoWire::write(uint8_t data)
// put byte in tx buffer
txBuffer[txBufferIndex] = data;
++txBufferIndex;
// update amount in buffer
// update amount in buffer
txBufferLength = txBufferIndex;
}else{
// in slave send mode
Expand Down Expand Up @@ -244,7 +244,7 @@ int TwoWire::available(void)
int TwoWire::read(void)
{
int value = -1;

// get each successive byte on each call
if(rxBufferIndex < rxBufferLength){
value = rxBuffer[rxBufferIndex];
Expand All @@ -260,7 +260,7 @@ int TwoWire::read(void)
int TwoWire::peek(void)
{
int value = -1;

if(rxBufferIndex < rxBufferLength){
value = rxBuffer[rxBufferIndex];
}
Expand Down Expand Up @@ -289,7 +289,7 @@ void TwoWire::onReceiveService(uint8_t* inBytes, int numBytes)
// copy twi rx buffer into local read buffer
// this enables new reads to happen in parallel
for(uint8_t i = 0; i < numBytes; ++i){
rxBuffer[i] = inBytes[i];
rxBuffer[i] = inBytes[i];
}
// set rx iterator vars
rxBufferIndex = 0;
Expand Down

0 comments on commit 4c00b60

Please sign in to comment.