Skip to content

Commit d032d0e

Browse files
facchinmmaidnl
authored andcommitted
Revert "Wire: abort() transaction after timeout"
This reverts commit 1da5171.
1 parent 8d2d033 commit d032d0e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

libraries/Wire/Wire.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -489,10 +489,6 @@ uint8_t TwoWire::read_from(uint8_t address, uint8_t* data, uint8_t length, unsig
489489
if(bus_status == WIRE_STATUS_RX_COMPLETED) {
490490
return length;
491491
}
492-
493-
if(bus_status == WIRE_STATUS_UNSET) {
494-
m_abort(&m_i2c_ctrl);
495-
}
496492

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

0 commit comments

Comments
 (0)