Fixed return code for usbFunctionWrite to indicate no more data.
authorPat Thoyts <patthoyts@users.sourceforge.net>
Wed, 6 Nov 2013 22:20:21 +0000 (22:20 +0000)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Sat, 9 Nov 2013 15:10:33 +0000 (15:10 +0000)
commit15a1443a098edec7f19ea6628da6170b2f979ea2
tree01451b470512d296d9368ef4c53f65cd653c732d
parent3cba1352cc8fcf74d6d965ceb2a22c2185f9e0a6
Fixed return code for usbFunctionWrite to indicate no more data.

On some hubs the device was being polled rapidly which slowed down the
heartbeat led indicating too much processing was going on. It turns out
we failed to respond correctly when the LED status was set and the host
permanently attempted to get a response from the device.

Also reworked the initialization code and tidied up and added more
comments.

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
main.c