Skip to content

Commit

Permalink
Merge pull request #1810 from soypat/write_wlan-fix
Browse files Browse the repository at this point in the history
rp::wlan_write: avoid ineffectual writing of entire buffer over spi
  • Loading branch information
Dirbaio authored Aug 22, 2023
2 parents 31c5bdf + 977ae5e commit b436aad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cyw43/src/bus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ where
cmd_buf[0] = cmd;
cmd_buf[1..][..buf.len()].copy_from_slice(buf);

self.status = self.spi.cmd_write(&cmd_buf).await;
self.status = self.spi.cmd_write(&cmd_buf[..buf.len() + 1]).await;
}

#[allow(unused)]
Expand Down

0 comments on commit b436aad

Please sign in to comment.