Skip to content

Commit

Permalink
Remove leftover code that shouldn't be there
Browse files Browse the repository at this point in the history
  • Loading branch information
MCUdude committed Feb 2, 2020
1 parent c0138ab commit 72eaa36
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions avr/libraries/Wire/src/Wire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ void TwoWire::begin(void)
void TwoWire::begin(uint8_t address)
{
begin();
twi_attachSlaveTxEvent(onRequestService);
twi_attachSlaveRxEvent(onReceiveService);
twi_setAddress(address);
}

Expand Down
1 change: 0 additions & 1 deletion avr/libraries/Wire/src/utility/twi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down
2 changes: 0 additions & 2 deletions avr/libraries/Wire1/src/Wire1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ void TwoWire1::begin(void)
void TwoWire1::begin(uint8_t address)
{
begin();
twi_attachSlaveTxEvent1(onRequestService);
twi_attachSlaveRxEvent1(onReceiveService);
twi_setAddress1(address);
}

Expand Down
1 change: 0 additions & 1 deletion avr/libraries/Wire1/src/utility/twi1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 72eaa36

Please sign in to comment.