forked from Imagelibrary/rtems
bsps/xilinx-zynq: Fixed QSPI Flash sector erase
Erases of exactly the sector size only erase one sector instead of two. Closes #5161
This commit is contained in:
@@ -529,7 +529,7 @@ zqspi_error zqspi_erase(zqspiflash *driver, uint32_t address, size_t length)
|
||||
return fe;
|
||||
}
|
||||
|
||||
if (length < driver->flash_erase_sector_size) {
|
||||
if (length <= driver->flash_erase_sector_size) {
|
||||
done = true;
|
||||
} else {
|
||||
address += driver->flash_erase_sector_size;
|
||||
|
||||
Reference in New Issue
Block a user