Fix compile error when verification is enabled
This commit is contained in:
parent
c38eb9660b
commit
5e19fb6fb9
@ -286,13 +286,13 @@ mod tests {
|
|||||||
|
|
||||||
const STATE: Partition = Partition::new(0, 4096);
|
const STATE: Partition = Partition::new(0, 4096);
|
||||||
const DFU: Partition = Partition::new(4096, 8192);
|
const DFU: Partition = Partition::new(4096, 8192);
|
||||||
let mut flash = MemFlash::<8192, 4096, 4>([0xff; 8192]);
|
let mut flash = MemFlash::<8192, 4096, 4>::default();
|
||||||
|
|
||||||
let firmware_len = firmware.len();
|
let firmware_len = firmware.len();
|
||||||
|
|
||||||
let mut write_buf = [0; 4096];
|
let mut write_buf = [0; 4096];
|
||||||
write_buf[0..firmware_len].copy_from_slice(firmware);
|
write_buf[0..firmware_len].copy_from_slice(firmware);
|
||||||
NorFlash::write(&mut flash, DFU.from as u32, &write_buf).unwrap();
|
DFU.write_blocking(&mut flash, 0, &write_buf).unwrap();
|
||||||
|
|
||||||
// On with the test
|
// On with the test
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user