Closed stenbergd closed 9 years ago
This issue was detected when printing large amount of data (from gyroscope) over USB. It would occasionally get stuck.
Done. The loops now time out and reset the USB Tx state so that new transmission can be performed.
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?