Re-request write/read op after loop is done; fixes multiple sequential writes not working
This commit is contained in:
parent
c2383801ef
commit
821f538f6d
1 changed files with 2 additions and 1 deletions
|
@ -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())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue