STM32H7 FLASH: Fixed compile error.

This commit is contained in:
David Sidrane 2019-10-23 08:01:43 -06:00 committed by Gregory Nutt
parent f7af996f1d
commit b3ed4b95bf

View File

@ -522,8 +522,7 @@ ssize_t up_progmem_eraseblock(size_t block)
stm32h7_flash_modifyreg32(priv, STM32_FLASH_CR1_OFFSET, 0, FLASH_CR_SER);
stm32h7_flash_modifyreg32(priv, STM32_FLASH_CR1_OFFSET, FLASH_CR_SNB_MASK,
FLASH_CR_SNB((block +
CONFIG_STM32H7_PROGMEM_STARTBLOCK)));
FLASH_CR_SNB(block));
stm32h7_flash_modifyreg32(priv, STM32_FLASH_CR1_OFFSET, 0, FLASH_CR_START);