TwoWire::read_from and TwoWire::write_to millis rollover bug #195
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
The code in bot TwoWire::read_from and TwoWire::write_to includes these lines:
which is not safe for millis rollover. In the rare occurrence that read_from or write_to is called within timeout_ms of rollover, the code will immediately timeout. The AVR code for this is written using subtraction as is preached daily on the forum.
I propose fixing the code to use subtraction like the AVR code.
The text was updated successfully, but these errors were encountered: