Skip to content

Commit

Permalink
gimlet-seq-server: use set_bytes not write_bytes for sequencing control
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron-Hartwig committed Nov 22, 2024
1 parent 0f2196e commit 52e85dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drv/gimlet-seq-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ impl<S: SpiServer> ServerImpl<S> {
// failing to sequence.
//
let a1 = Reg::PWR_CTRL::A1PWREN;
self.seq.write_bytes(Addr::PWR_CTRL, &[a1]).unwrap_lite();
self.seq.set_bytes(Addr::PWR_CTRL, &[a1]).unwrap_lite();

loop {
let mut status = [0u8];
Expand Down Expand Up @@ -779,7 +779,7 @@ impl<S: SpiServer> ServerImpl<S> {
// Onward to A0!
//
let a0 = Reg::PWR_CTRL::A0A_EN;
self.seq.write_bytes(Addr::PWR_CTRL, &[a0]).unwrap_lite();
self.seq.set_bytes(Addr::PWR_CTRL, &[a0]).unwrap_lite();

loop {
let mut status = [0u8];
Expand Down

0 comments on commit 52e85dc

Please sign in to comment.