usb.c freezes the CPU when there is no one listening #89
Labels
Enhancement
New feature or request
Implemented
This has been fixed but not yet published/pushed
USB Library
This is related to the USB library (usb.c)
Without the following timeout, the busy function is waiting indefinitely when the serial listener is hung up or not started at all.
I am not sure if it is possible to stop listening with the original UNF executable (I presume it is the
-d
flag?) but it should happen if you are logging something say every frame and you terminate the process on computer side. Previously the above fix was removed with #85 as it was causing issues for the original SDK. The fix still exists in libdragon.An important difference between the two implementation is that, libdragon does not have threading yet so that might be causing something to break. Maybe having two different implementations for libdragon behind a define guard is an acceptable solution until the root cause is found?
The text was updated successfully, but these errors were encountered: