pub fn rewrite_block(
m: &CardModel,
dev: &mut Link,
index: u16,
image: &[u8],
wait: u64,
must_verify: Range<usize>,
p: &mut dyn Progress,
) -> Result<()>Expand description
Erase the parameter block, write image over it, then verify and repair.
Pages that did not take are rewritten. A page can only be rewritten while still erased, so a mismatched page holding other data re-erases the block.