Commit d903a03
committed
shared/tinyusb: Fix data loss after interrupt character.
After detecting interrupt character and returning early, mark the CDC
interface as pending if there's still data in the USB buffer. This ensures
subsequent data (like user typing new commands after Ctrl-C) is not lost.
Without this, data that arrived in USB packets after the interrupt would
be discarded until the next USB RX interrupt naturally occurred.
Signed-off-by: Andrew Leech <[email protected]>1 parent 393908a commit d903a03
File tree
1 file changed
+7
-1
lines changed1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
118 | 124 | | |
119 | 125 | | |
120 | 126 | | |
| |||
0 commit comments