mirror of https://github.com/ARMmbed/mbed-os.git
Remove redundant error flag clearing operation
parent
3a6b52fd15
commit
f7a030ef7c
|
@ -140,8 +140,6 @@ int32_t flash_erase_sector(flash_t *obj, uint32_t address)
|
|||
/* Clear error programming flags */
|
||||
__HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_ALL_ERRORS);
|
||||
|
||||
/* Clear OPTVERR bit set on virgin samples */
|
||||
__HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_OPTVERR);
|
||||
/* Get the 1st page to erase */
|
||||
FirstPage = GetPage(address);
|
||||
/* MBED HAL erases 1 page / sector at a time */
|
||||
|
|
Loading…
Reference in New Issue