Browse Source

fix repeated start in slave mode

main
PaulStoffregen 9 years ago
parent
commit
9b2a47eb8b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      utility/twi.c

+ 1
- 1
utility/twi.c View File

@@ -467,7 +467,7 @@ SIGNAL(TWI_vect)
twi_rxBuffer[twi_rxBufferIndex] = '\0';
}
// sends ack and stops interface for clock stretching
twi_stop();
//twi_stop(); // Arduino issue #66
// callback to user defined callback
twi_onSlaveReceive(twi_rxBuffer, twi_rxBufferIndex);
// since we submit rx buffer to "wire" library, we can reset it

Loading…
Cancel
Save