Status: Accepted
Owner: [email protected]
Labels: Type-Enhancement Priority-Medium

New issue 178 by [email protected]: USB addition of reset callback.
http://code.google.com/p/jallib/issues/detail?id=178

Previous discussion at:
http://groups.google.com/group/jallib/browse_thread/thread/e6c730dbaa2a31f8/3b4bf0227b3231ef?lnk=gst&q=msd#3b4bf0227b3231ef

procedure _usb_handle_reset() needs a reset callback added.

if defined (usb_reset_callback) then
   usb_reset_callback()
end if

USB can issue resets, however it should not if your code is good. But
then again, there could be other reasons for USB to reset, such as a
power glitch, or too much debug code during development.

When writing a USB class library, it is quite easy to have too much debug code. This will cause _usb_handle_reset to run.

Without resetting some of your program's variables, your program could
get stuck or have issues.

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to