Re-request write/read op after loop is done; fixes multiple sequential writes not working

This commit is contained in:
NGnius (Graham) 2024-01-28 12:12:47 -05:00
parent c2383801ef
commit 821f538f6d

View file

@ -133,7 +133,7 @@ impl embedded_io::Write for EmbeddedController {
super::ports::outl(self.data_address, u32::from_ne_bytes(l)); super::ports::outl(self.data_address, u32::from_ne_bytes(l));
} }
} }
self.cmd_requested = 0;
Ok(buf.len()) Ok(buf.len())
} }
@ -179,6 +179,7 @@ impl embedded_io::Read for EmbeddedController {
} }
} }
} }
self.cmd_requested = 0;
Ok(buf.len()) Ok(buf.len())
} }
} }