diff options
| author | Raul Alimbekov <[email protected]> | 2025-12-16 09:05:22 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-16 09:05:22 +0300 |
| commit | c9a04b4b732b7a3b696eb8223664c1a7942b1875 (patch) | |
| tree | 6dbe5c02e66eed8d8762f13f95afd24f8db2b38c /cyw43/src/bus.rs | |
| parent | cde24a3ef1117653ba5ed4184102b33f745782fb (diff) | |
| parent | 5ae6e060ec1c90561719aabdc29d5b6e7b8b0a82 (diff) | |
Merge branch 'main' into main
Diffstat (limited to 'cyw43/src/bus.rs')
| -rw-r--r-- | cyw43/src/bus.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cyw43/src/bus.rs b/cyw43/src/bus.rs index 8a53484d5..aa2b66a40 100644 --- a/cyw43/src/bus.rs +++ b/cyw43/src/bus.rs | |||
| @@ -340,11 +340,7 @@ where | |||
| 340 | self.status = self.spi.cmd_read(cmd, &mut buf[..len]).await; | 340 | self.status = self.spi.cmd_read(cmd, &mut buf[..len]).await; |
| 341 | 341 | ||
| 342 | // if we read from the backplane, the result is in the second word, after the response delay | 342 | // if we read from the backplane, the result is in the second word, after the response delay |
| 343 | if func == FUNC_BACKPLANE { | 343 | if func == FUNC_BACKPLANE { buf[1] } else { buf[0] } |
| 344 | buf[1] | ||
| 345 | } else { | ||
| 346 | buf[0] | ||
| 347 | } | ||
| 348 | } | 344 | } |
| 349 | 345 | ||
| 350 | async fn writen(&mut self, func: u32, addr: u32, val: u32, len: u32) { | 346 | async fn writen(&mut self, func: u32, addr: u32, val: u32, len: u32) { |
