Merge pull request #1848 from kalkyl/rp-write-size

rp: Fix write size in embassy-boot example app
This commit is contained in:
Dario Nieuwenhuis 2023-08-30 21:34:34 +00:00 committed by GitHub
commit a2ce3aa1a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ async fn main(_s: Spawner) {
let flash = Mutex::new(RefCell::new(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);
Timer::after(Duration::from_secs(5)).await;