We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9cf257f + 43a4944 commit 05846ffCopy full SHA for 05846ff
src/main.rs
@@ -80,7 +80,7 @@ impl FlashAlgo for RP2040Algo {
80
}
81
82
fn erase_sector(&mut self, addr: u32) -> Result<(), ErrorCode> {
83
- (self.funcs.flash_range_erase)(addr - FLASH_BASE, 4096, BLOCK_SIZE, BLOCK_ERASE_CMD);
+ (self.funcs.flash_range_erase)(addr - FLASH_BASE, SECTOR_SIZE, BLOCK_SIZE, BLOCK_ERASE_CMD);
84
Ok(())
85
86
0 commit comments