fix write32_swapped func

This commit is contained in:
Brandon Ros 2023-08-22 18:31:30 -04:00
parent f0ab990058
commit 68aa58bbed

View File

@ -372,7 +372,7 @@ where
} }
async fn write32_swapped(&mut self, func: u32, addr: u32, val: u32) { 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)]; let buf = [swap16(cmd), swap16(val)];
self.status = self.spi.cmd_write(&buf).await; self.status = self.spi.cmd_write(&buf).await;