diff options
Diffstat (limited to 'examples/boot/application/nrf/src')
| -rw-r--r-- | examples/boot/application/nrf/src/bin/a.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/boot/application/nrf/src/bin/a.rs b/examples/boot/application/nrf/src/bin/a.rs index bd8fa3246..133a3e678 100644 --- a/examples/boot/application/nrf/src/bin/a.rs +++ b/examples/boot/application/nrf/src/bin/a.rs | |||
| @@ -36,7 +36,8 @@ async fn main(_spawner: Spawner) { | |||
| 36 | updater.write_firmware(offset, &buf, &mut nvmc, 4096).await.unwrap(); | 36 | updater.write_firmware(offset, &buf, &mut nvmc, 4096).await.unwrap(); |
| 37 | offset += chunk.len(); | 37 | offset += chunk.len(); |
| 38 | } | 38 | } |
| 39 | updater.update(&mut nvmc).await.unwrap(); | 39 | let mut magic = [0; 4]; |
| 40 | updater.mark_updated(&mut nvmc, &mut magic).await.unwrap(); | ||
| 40 | led.set_high(); | 41 | led.set_high(); |
| 41 | cortex_m::peripheral::SCB::sys_reset(); | 42 | cortex_m::peripheral::SCB::sys_reset(); |
| 42 | } | 43 | } |
