common/serial/usb: fix hang when write buffer gets full and then the bus resets.
Fixes #654
This commit is contained in:
parent
88d9599a63
commit
8acec146e0
1 changed files with 2 additions and 0 deletions
|
@ -302,6 +302,8 @@ where
|
|||
self.read_buf.clear();
|
||||
self.write_buf.clear();
|
||||
self.write_state = WriteState::Idle;
|
||||
self.read_waker.wake();
|
||||
self.write_waker.wake();
|
||||
}
|
||||
|
||||
fn endpoint_in_complete(&mut self, addr: EndpointAddress) {
|
||||
|
|
Loading…
Reference in a new issue