From 821f538f6d5b22ceeaff51dc7dec57205bad32d7 Mon Sep 17 00:00:00 2001 From: "NGnius (Graham)" Date: Sun, 28 Jan 2024 12:12:47 -0500 Subject: [PATCH] Re-request write/read op after loop is done; fixes multiple sequential writes not working --- src/ec/controller.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ec/controller.rs b/src/ec/controller.rs index 189a0e1..52e2e98 100644 --- a/src/ec/controller.rs +++ b/src/ec/controller.rs @@ -133,7 +133,7 @@ impl embedded_io::Write for EmbeddedController { super::ports::outl(self.data_address, u32::from_ne_bytes(l)); } } - + self.cmd_requested = 0; Ok(buf.len()) } @@ -179,6 +179,7 @@ impl embedded_io::Read for EmbeddedController { } } } + self.cmd_requested = 0; Ok(buf.len()) } }