Skip to content

Potential Issue in I2C Timeout #592

Open
@tay10r

Description

@tay10r

if((twi_timeout_us > 0ul) && ((micros() - startMicros) > twi_timeout_us)) {

If micros overflows after the start and before the end of this read function, it will overflow and possibly return before the timeout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions