-
Notifications
You must be signed in to change notification settings - Fork 48
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
Library code robustness #8
Comments
Here a first attempt at relief:
For example in my daemon program I can now place a if (rc=littleWire_error()){printf("littleWire error %d",rc);}whenever appropriate and such verify that no error occurred. |
Hi, I'll definitely look in to that as well. Especially the error feedback is an issue at the moment. Thanks for the valuable submission! ihsan. |
Hi, This also fixed with the v1.1 firmware! ihsan. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm opening another can of worms here:
At the moment the library is a very thin wrapper around libusb. I was amazed that one can get away with so little code :-). The main problem with the is the lack of detailed, user-friendly feedback when problems occur.
Here two examples (I'm running everything on Linux):
When I wrote a daemon, I could not find a way to query the status of the device. I'd like at least to properly bail out with an explaining message, when I detect that my littleWire device is no longer there...
The text was updated successfully, but these errors were encountered: