Skip to content
Prev Previous commit
Next Next commit
Revert "Wire: abort() transaction after timeout"
This reverts commit 1da5171.
  • Loading branch information
facchinm authored and maidnl committed Jun 11, 2024
commit d032d0ed356d25d49dd25999406fbb2f83fe5303
5 changes: 0 additions & 5 deletions libraries/Wire/Wire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,10 +489,6 @@ uint8_t TwoWire::read_from(uint8_t address, uint8_t* data, uint8_t length, unsig
if(bus_status == WIRE_STATUS_RX_COMPLETED) {
return length;
}

if(bus_status == WIRE_STATUS_UNSET) {
m_abort(&m_i2c_ctrl);
}

return 0; /* ???????? return value ??????? */
}
Expand Down Expand Up @@ -525,7 +521,6 @@ uint8_t TwoWire::write_to(uint8_t address, uint8_t* data, uint8_t length, unsign
}
else if(bus_status == WIRE_STATUS_UNSET) {
rv = END_TX_TIMEOUT;
m_abort(&m_i2c_ctrl);
}
/* as far as I know is impossible to distinguish between NACK on ADDRESS and
NACK on DATA */
Expand Down