From 9199bb7a1656ad6b7ca4a293918d00fc109ddb52 Mon Sep 17 00:00:00 2001 From: Astro Date: Sun, 22 Dec 2019 03:14:18 +0100 Subject: [PATCH] libboard_zynq::flash: use only 32-bit spi words in program() --- libboard_zynq/src/flash/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libboard_zynq/src/flash/mod.rs b/libboard_zynq/src/flash/mod.rs index d40568b..3bf0d37 100644 --- a/libboard_zynq/src/flash/mod.rs +++ b/libboard_zynq/src/flash/mod.rs @@ -443,8 +443,7 @@ impl Flash { pub fn program>(&mut self, offset: u32, data: I) { { let len = 4 + 4 * data.size_hint().0; - let args = Some(SpiWord::W32(((INST_PP as u32) << 24) | (offset as u32))) - .into_iter() + let args = Some(SpiWord::W32(((INST_PP as u32) << 24) | (offset as u32))).into_iter() .chain(data.map(SpiWord::W32)); self.transfer(args, len); }