Skip to content

Race condition in the default I2C library  #96

@ezraboley

Description

@ezraboley

Using the built-in I2C calls leads to race conditions when used across threads. We previously were under the assumption that Linux I2C functions would be thread-safe but this has been shown to not be the case. All I2C read/write functionality in this repository needs to be protected with a mutex, implementation of this thread protection is somewhat up to the programmer.

There exists a fix that has not been pushed yet, but it is far from elegant and was not meant to be the solution, just a temporary patch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions