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 eab6601ebc
commit 0b27210105
1 changed files with 0 additions and 2 deletions

View File

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