Closed bjc closed 1 year ago
This covers more bases when the device is reset by hooking into the firmware library's reset hook.
I've also added a 5ms transmission timeout on flush so things don't hang indefinitely if the host is ignoring that endpoint.
Tested on macOS UEFI and the real OS, as well as Linux. I don't have access to windows right now, so I can't test that.
I'll test this shortly on Windows and merge if USB-CDC still works as normal.
Sorry for the wait, I'll test shortly.
Sorry for the massive delay, I've tested this to be working on Windows, thus I'll merge.
This covers more bases when the device is reset by hooking into the firmware library's reset hook.
I've also added a 5ms transmission timeout on flush so things don't hang indefinitely if the host is ignoring that endpoint.
Tested on macOS UEFI and the real OS, as well as Linux. I don't have access to windows right now, so I can't test that.