diff options
| author | Rasmus Melchior Jacobsen <[email protected]> | 2023-05-30 14:05:38 +0200 |
|---|---|---|
| committer | Rasmus Melchior Jacobsen <[email protected]> | 2023-05-30 14:05:38 +0200 |
| commit | b527cc98af97e43186a9676b78b4b7f7ece1fa86 (patch) | |
| tree | b94baebd21987ed76f37c8791b4427489b2dfee9 /examples/boot/application/stm32f7 | |
| parent | 36e00caf4dc70905b735531c0d5634addd026954 (diff) | |
Formatting
Diffstat (limited to 'examples/boot/application/stm32f7')
| -rw-r--r-- | examples/boot/application/stm32f7/src/bin/a.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/boot/application/stm32f7/src/bin/a.rs b/examples/boot/application/stm32f7/src/bin/a.rs index 530683cac..fc2702c91 100644 --- a/examples/boot/application/stm32f7/src/bin/a.rs +++ b/examples/boot/application/stm32f7/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]); |
