diff --git a/avr/libraries/Wire/src/Wire.cpp b/avr/libraries/Wire/src/Wire.cpp index 3dcdeb148..8870014d0 100755 --- a/avr/libraries/Wire/src/Wire.cpp +++ b/avr/libraries/Wire/src/Wire.cpp @@ -68,8 +68,6 @@ void TwoWire::begin(void) void TwoWire::begin(uint8_t address) { begin(); - twi_attachSlaveTxEvent(onRequestService); - twi_attachSlaveRxEvent(onReceiveService); twi_setAddress(address); } diff --git a/avr/libraries/Wire/src/utility/twi.c b/avr/libraries/Wire/src/utility/twi.c index 6882a3d2c..2ae0d6789 100755 --- a/avr/libraries/Wire/src/utility/twi.c +++ b/avr/libraries/Wire/src/utility/twi.c @@ -314,7 +314,6 @@ uint8_t twi_transmit(const uint8_t* data, uint8_t length) } // set length and copy data into tx buffer - twi_txBufferLength = length; for(i = 0; i < length; ++i){ twi_txBuffer[twi_txBufferLength+i] = data[i]; } diff --git a/avr/libraries/Wire1/src/Wire1.cpp b/avr/libraries/Wire1/src/Wire1.cpp index 41db40190..47e24f07e 100755 --- a/avr/libraries/Wire1/src/Wire1.cpp +++ b/avr/libraries/Wire1/src/Wire1.cpp @@ -68,8 +68,6 @@ void TwoWire1::begin(void) void TwoWire1::begin(uint8_t address) { begin(); - twi_attachSlaveTxEvent1(onRequestService); - twi_attachSlaveRxEvent1(onReceiveService); twi_setAddress1(address); } diff --git a/avr/libraries/Wire1/src/utility/twi1.c b/avr/libraries/Wire1/src/utility/twi1.c index 4929ad627..b44fbf9f4 100755 --- a/avr/libraries/Wire1/src/utility/twi1.c +++ b/avr/libraries/Wire1/src/utility/twi1.c @@ -314,7 +314,6 @@ uint8_t twi_transmit1(const uint8_t* data, uint8_t length) } // set length and copy data into tx buffer - twi_txBufferLength = length; for(i = 0; i < length; ++i){ twi_txBuffer[twi_txBufferLength+i] = data[i]; }