From 7bfa0732db38558f7a834789f48b5ae0fa8e36e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sun, 28 Nov 2021 23:11:40 +0100 Subject: [PATCH] Fix wrong register bit in flash writer. This actually didn't result in an error but it's better to fix it either way. --- stm-firmware/updater/ram-code/flash-writer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;