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
@ -302,6 +302,8 @@ where
|
|||||||
self.read_buf.clear();
|
self.read_buf.clear();
|
||||||
self.write_buf.clear();
|
self.write_buf.clear();
|
||||||
self.write_state = WriteState::Idle;
|
self.write_state = WriteState::Idle;
|
||||||
|
self.read_waker.wake();
|
||||||
|
self.write_waker.wake();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn endpoint_in_complete(&mut self, addr: EndpointAddress) {
|
fn endpoint_in_complete(&mut self, addr: EndpointAddress) {
|
||||||
|
Loading…
Reference in New Issue
Block a user