Fix wrong register bit in flash writer. This actually didn't result in an error but it's better to fix it either way.

This commit is contained in:
Mario Hüttel 2021-11-28 23:11:40 +01:00
parent 0dace23021
commit 7bfa0732db
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ void flash_writer_perform_mass_erase(void)
flash_writer_enable_access();
while (flash_op_busy());
FLASH->CR = DMA_SxCR_PSIZE_1;
FLASH->CR = FLASH_CR_PSIZE_1;
FLASH->CR |= FLASH_CR_MER;
FLASH->CR |= FLASH_CR_STRT;