common/serial/usb: fix hang when write buffer gets full and then the bus resets.
Fixes #654
This commit is contained in:
		| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user