Skip to content

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

@RobertZ2011

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions