Remove redundant error flag clearing operation

pull/8479/head
Juho Eskeli 2018-10-02 09:18:03 +03:00 committed by adbridge
parent e9f845bb7a
commit b3a69c54c7
1 changed files with 0 additions and 2 deletions

View File

@ -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 */