File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
arduino/sketchbook/hardware/Microduino/avr/libraries/Wire/src Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -282,9 +282,9 @@ void TwoWire::onReceiveService(uint8_t* inBytes, int numBytes)
282
282
// don't bother if rx buffer is in use by a master requestFrom() op
283
283
// i know this drops data, but it allows for slight stupidity
284
284
// meaning, they may not have read all the master requestFrom() data yet
285
- if (rxBufferIndex < rxBufferLength){
286
- return ;
287
- }
285
+ // if(rxBufferIndex < rxBufferLength){
286
+ // return;
287
+ // }
288
288
// copy twi rx buffer into local read buffer
289
289
// this enables new reads to happen in parallel
290
290
for (uint8_t i = 0 ; i < numBytes; ++i){
@@ -306,8 +306,8 @@ void TwoWire::onRequestService(void)
306
306
}
307
307
// reset tx buffer iterator vars
308
308
// !!! this will kill any pending pre-master sendTo() activity
309
- txBufferIndex = 0 ;
310
- txBufferLength = 0 ;
309
+ // txBufferIndex = 0;
310
+ // txBufferLength = 0;
311
311
// alert user program
312
312
user_onRequest ();
313
313
}
You can’t perform that action at this time.
0 commit comments