make usb-dfu work with usb serial

This commit is contained in:
Max Känner 2023-12-22 15:29:17 +01:00
parent 595ad10769
commit 4695e46a59

View File

@ -73,6 +73,8 @@ impl<'d, STATE: NorFlash, RST: Reset> Handler for Control<'d, STATE, RST> {
self.detach_start = Some(Instant::now()); self.detach_start = Some(Instant::now());
self.timeout = Some(Duration::from_millis(req.value as u64)); self.timeout = Some(Duration::from_millis(req.value as u64));
self.state = State::AppDetach; self.state = State::AppDetach;
// hack to make it work together with usb serial logging
self.reset();
Some(OutResponse::Accepted) Some(OutResponse::Accepted)
} }
_ => None, _ => None,