Skip to content
Snippets Groups Projects
Commit f2b404ad authored by Benjamin Koch's avatar Benjamin Koch
Browse files

bugfix: UF2 updater was using wrong flash address

parent 38f5e041
No related branches found
No related tags found
No related merge requests found
......@@ -219,7 +219,7 @@ impl<const FLASH_SIZE: usize> UF2UpdateHandler<FLASH_SIZE> {
return;
}
let addr_orig = addr;
let addr = addr - partitions.flash_start_addr - partitions.active.from + partitions.dfu.to;
let addr = addr - partitions.flash_start_addr - partitions.active.from + partitions.dfu.from;
let abort_previous: bool;
let process_current: bool;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment