Skip to content

Commit

Permalink
Update Wire.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
goodchip committed Mar 6, 2019
1 parent 92a0ef4 commit 77e3720
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions avr/libraries/Wire/src/Wire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,8 @@ void TwoWire::onRequestService(void)
return;
}

// reset tx buffer iterator vars
// !!! this will kill any pending pre-master sendTo() activity
txBufferIndex = 0;
txBufferLength = 0;
// reset slave write buffer iterator var
slave_bytesToWrite = 0;

// alert user program
user_onRequest();
Expand Down

0 comments on commit 77e3720

Please sign in to comment.