Comments (3)
Here a first attempt at relief:
- Add a global variable 'int lwerror' in littleWire.c
- Modify each call to 'usb_control_msg' to read 'lwerror = usb_control_msg'
-> This saves the return code of usb_control_msg in lwerror for future reference - Add a new subroutine littleWire_error():
int littleWire_error () { if (lwerror < 0) return lwerror; else return 0; }
-> This gives access to the error code to applications
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.
from little-wire.
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.
from little-wire.
Hi,
This also fixed with the v1.1 firmware!
ihsan.
from little-wire.
Related Issues (14)
- Potential USB 3 Incompatibility HOT 2
- C# Library not working under mono? HOT 1
- CDC232 Specifications HOT 2
- Firmware 1.1 update has problems with 1.0 code HOT 1
- Add device ID mechanism HOT 5
- Windows Driver is Unsigned HOT 2
- Littlewire library uses SETUP/DIR_DEVICE_TO_HOST, even when it just wants to send a command without reply HOT 1
- 1.3 release tag HOT 1
- Examples segfault HOT 2
- change pin for onewire
- littlewire.cc domain has expired :( HOT 2
- Can't compile any examples.
- Enable internal pullups HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from little-wire.