Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap errors for embedded-hal trait implementations #30

Merged
merged 3 commits into from
Apr 6, 2024

Commits on Apr 4, 2024

  1. Wrap errors for embedded-hal trait implementations

    The current implementations of the `OutputPin`, `InputPin` and `StatefulOutputPin`
    traits require that `PortDriver::Error` implements `embedded_hal::digital::Error`,
    which is never going to be the case. Thus, these traits are never usable.
    
    This change wraps the error type used in `ErrorKind::Error` in a wrapper struct
    which implements `embedded_hal::digital::Error`. Like this all upstream errors that
    are `core::fmt::Debug` should be compatible with `embedded-hal`.
    markus-k committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    524ca21 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2024

  1. Configuration menu
    Copy the full SHA
    4c02e95 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5df5f15 View commit details
    Browse the repository at this point in the history