1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-18 07:52:14 +01:00

Wire (AVR): Fix bug with repeated START

Fix #66
This commit is contained in:
Nate Williams 2012-03-06 22:03:54 -07:00 committed by Cristian Maglie
parent d00a3ceba3
commit 64cee7bbbc

View File

@ -480,8 +480,6 @@ ISR(TWI_vect)
if(twi_rxBufferIndex < TWI_BUFFER_LENGTH){ if(twi_rxBufferIndex < TWI_BUFFER_LENGTH){
twi_rxBuffer[twi_rxBufferIndex] = '\0'; twi_rxBuffer[twi_rxBufferIndex] = '\0';
} }
// sends ack and stops interface for clock stretching
twi_stop();
// callback to user defined callback // callback to user defined callback
twi_onSlaveReceive(twi_rxBuffer, twi_rxBufferIndex); twi_onSlaveReceive(twi_rxBuffer, twi_rxBufferIndex);
// since we submit rx buffer to "wire" library, we can reset it // since we submit rx buffer to "wire" library, we can reset it