diff --git a/stm-firmware/updater/ram-code/flash-writer.c b/stm-firmware/updater/ram-code/flash-writer.c index c5782ba..1496cf6 100644 --- a/stm-firmware/updater/ram-code/flash-writer.c +++ b/stm-firmware/updater/ram-code/flash-writer.c @@ -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;