aboutsummaryrefslogtreecommitdiff
path: root/embassy-boot/boot/src/mem_flash.rs
diff options
context:
space:
mode:
authorRasmus Melchior Jacobsen <[email protected]>2023-04-04 21:09:30 +0200
committerRasmus Melchior Jacobsen <[email protected]>2023-04-04 21:09:30 +0200
commit25577e0eafd8a3d4ffaa4b8f17cb55399fd58038 (patch)
tree8e465872041cd22d1f15c2fd81cd43063d1d1a58 /embassy-boot/boot/src/mem_flash.rs
parent9242ad89d436422fd5abdafadb2faf845e730a16 (diff)
Assert active and dfu have same erase size and copy in smaller chunks
The copy from active to dfu (and vice versa) is now done in smaller portions depending on aligned_buf, which now does not need to be erase_size big.
Diffstat (limited to 'embassy-boot/boot/src/mem_flash.rs')
-rw-r--r--embassy-boot/boot/src/mem_flash.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/embassy-boot/boot/src/mem_flash.rs b/embassy-boot/boot/src/mem_flash.rs
index 828aad9d9..2598bf4de 100644
--- a/embassy-boot/boot/src/mem_flash.rs
+++ b/embassy-boot/boot/src/mem_flash.rs
@@ -47,7 +47,6 @@ impl<const SIZE: usize, const ERASE_SIZE: usize, const WRITE_SIZE: usize> Defaul
47impl<const SIZE: usize, const ERASE_SIZE: usize, const WRITE_SIZE: usize> Flash 47impl<const SIZE: usize, const ERASE_SIZE: usize, const WRITE_SIZE: usize> Flash
48 for MemFlash<SIZE, ERASE_SIZE, WRITE_SIZE> 48 for MemFlash<SIZE, ERASE_SIZE, WRITE_SIZE>
49{ 49{
50 const BLOCK_SIZE: usize = ERASE_SIZE;
51 const ERASE_VALUE: u8 = 0xFF; 50 const ERASE_VALUE: u8 = 0xFF;
52} 51}
53 52