aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/application/stm32h7/src/bin
diff options
context:
space:
mode:
authorRasmus Melchior Jacobsen <[email protected]>2023-05-30 14:05:38 +0200
committerRasmus Melchior Jacobsen <[email protected]>2023-05-30 14:05:38 +0200
commitb527cc98af97e43186a9676b78b4b7f7ece1fa86 (patch)
treeb94baebd21987ed76f37c8791b4427489b2dfee9 /examples/boot/application/stm32h7/src/bin
parent36e00caf4dc70905b735531c0d5634addd026954 (diff)
Formatting
Diffstat (limited to 'examples/boot/application/stm32h7/src/bin')
-rw-r--r--examples/boot/application/stm32h7/src/bin/a.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/boot/application/stm32h7/src/bin/a.rs b/examples/boot/application/stm32h7/src/bin/a.rs
index e5f94310c..1a54464d0 100644
--- a/examples/boot/application/stm32h7/src/bin/a.rs
+++ b/examples/boot/application/stm32h7/src/bin/a.rs
@@ -33,9 +33,7 @@ async fn main(_spawner: Spawner) {
33 let mut buf = AlignedBuffer([0; 4096]); 33 let mut buf = AlignedBuffer([0; 4096]);
34 for chunk in APP_B.chunks(4096) { 34 for chunk in APP_B.chunks(4096) {
35 buf.as_mut()[..chunk.len()].copy_from_slice(chunk); 35 buf.as_mut()[..chunk.len()].copy_from_slice(chunk);
36 writer 36 writer.write(offset, buf.as_ref()).unwrap();
37 .write(offset, buf.as_ref())
38 .unwrap();
39 offset += chunk.len(); 37 offset += chunk.len();
40 } 38 }
41 let mut magic = AlignedBuffer([0; WRITE_SIZE]); 39 let mut magic = AlignedBuffer([0; WRITE_SIZE]);