rp: Fix write size in embassy-boot example app
This commit is contained in:
parent
5c936d33d4
commit
3769447382
@ -38,7 +38,7 @@ async fn main(_s: Spawner) {
|
|||||||
let flash = Mutex::new(RefCell::new(flash));
|
let flash = Mutex::new(RefCell::new(flash));
|
||||||
|
|
||||||
let config = FirmwareUpdaterConfig::from_linkerfile_blocking(&flash);
|
let config = FirmwareUpdaterConfig::from_linkerfile_blocking(&flash);
|
||||||
let mut aligned = AlignedBuffer([0; 4]);
|
let mut aligned = AlignedBuffer([0; 1]);
|
||||||
let mut updater = BlockingFirmwareUpdater::new(config, &mut aligned.0);
|
let mut updater = BlockingFirmwareUpdater::new(config, &mut aligned.0);
|
||||||
|
|
||||||
Timer::after(Duration::from_secs(5)).await;
|
Timer::after(Duration::from_secs(5)).await;
|
||||||
|
Loading…
Reference in New Issue
Block a user