afry-south / dragonfly-fcb

ÅF Dragonfly Quadrotor UAV Project
Other
7 stars 3 forks source link

Bug: while-loops in CDCTransmitFS #73

Closed stenbergd closed 9 years ago

stenbergd commented 9 years ago

If the USB device fails to go from USBD_BUSY, the TX thread will be stuck in an infinite loop. Fix so that a timeout makes sure code does not get stuck here.

Perhaps use some sort of rtos delay function?

And perhaps we need to reset the USB status or reinitialize USB CDC communication?

stenbergd commented 9 years ago

This issue was detected when printing large amount of data (from gyroscope) over USB. It would occasionally get stuck.

stenbergd commented 9 years ago

Done. The loops now time out and reset the USB Tx state so that new transmission can be performed.