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

Sinks should indicate failure to initialise #9

Open
cillian64 opened this issue Jul 30, 2014 · 1 comment
Open

Sinks should indicate failure to initialise #9

cillian64 opened this issue Jul 30, 2014 · 1 comment
Assignees

Comments

@cillian64
Copy link
Owner

If the Leonardo sink fails to initialise, for instance because /dev/ttyACM0 isn't present, it has no way of indicating this failure, so the sink must be unloaded then reloaded. It would be nice if the sink could indicate failure to load and not be recorded as loaded, so it can be reloaded without unloading first. This could be implemented by, for instance, raising an exception in init which is caught by Control.

@cillian64
Copy link
Owner Author

As a bonus, it would be nice if sinks could indicate from update() that they've had an issue and should unload.

They could raise an Exception which causes the sink to be reloaded, and then fail again from init using the mechanism above. It's a bit gross though.

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

No branches or pull requests

2 participants