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

Better error types #27

Open
sajattack opened this issue Nov 21, 2024 · 0 comments
Open

Better error types #27

sajattack opened this issue Nov 21, 2024 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@sajattack
Copy link
Owner

sajattack commented Nov 21, 2024

Currently, we map all errors to (). It might be more helpful for consumers if we made an Error enum like

enum Error {
    GPIOError(embedded_hal::digital::Error),
    SpiError(embedded_hal::spi::Error),
    etc.....
}
@sajattack sajattack added help wanted Extra attention is needed good first issue Good for newcomers labels Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant