From 68aa58bbedc91a3d2a9319536e51507c50af2381 Mon Sep 17 00:00:00 2001 From: Brandon Ros Date: Tue, 22 Aug 2023 18:31:30 -0400 Subject: [PATCH] fix write32_swapped func --- cyw43/src/bus.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyw43/src/bus.rs b/cyw43/src/bus.rs index fdc1db58..32aed697 100644 --- a/cyw43/src/bus.rs +++ b/cyw43/src/bus.rs @@ -372,7 +372,7 @@ where } async fn write32_swapped(&mut self, func: u32, addr: u32, val: u32) { - let cmd = cmd_word(WRITE, INC_ADDR, FUNC_BUS, addr, 4); + let cmd = cmd_word(WRITE, INC_ADDR, func, addr, 4); let buf = [swap16(cmd), swap16(val)]; self.status = self.spi.cmd_write(&buf).await;