Skip to content

Figure out trait bounds to allow transparent logging of error values #255

Description

@RobertZ2011

Most drivers are generic over a bus type and therefore over a specific bus error type. Logging these error types in generic code is difficult because they need to implement different traits based on if log or defmt is enabled. See if we can create our own trait, something like LogError that basically resolves to the right trait based on enabled features.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions