mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-18 07:52:14 +01:00
parent
d00a3ceba3
commit
64cee7bbbc
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user