Target resync now flushes all buffers (caused errors before)

This commit is contained in:
2025-09-19 15:26:53 +02:00
parent dcbdc9ff89
commit ffd1aa4874

View File

@@ -37,6 +37,7 @@ impl PhysicalTarget {
}
pub fn resync_target(&mut self) -> Result<(), Error> {
self.port.discard_buffers()?;
self.port.set_dtr(true)?;
self.port.set_rts(true)?;
std::thread::sleep(Duration::from_millis(10));