xfdump: correctly erase all sectors in xfdump_erase

This commit is contained in:
Yuri D'Elia 2021-06-22 15:54:22 +02:00 committed by DRracer
parent 8ff9b184c2
commit 8d11ad9d2d

View File

@ -44,7 +44,7 @@ static void xfdump_erase()
addr += 4096)
{
xflash_enable_wr();
xflash_sector_erase(DUMP_OFFSET);
xflash_sector_erase(addr);
xflash_wait_busy();
}
}