common/serial/usb: fix hang when write buffer gets full and then the bus resets.

Fixes #654
This commit is contained in:
Dario Nieuwenhuis 2022-03-07 00:24:29 +01:00
parent 88d9599a63
commit 8acec146e0

View file

@ -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) {