From 5e709edb3104cc1b56331530d60fe4d5f5cdd306 Mon Sep 17 00:00:00 2001 From: francisco Date: Tue, 18 Jun 2019 11:07:22 +0200 Subject: [PATCH] stm32_common/flashpage: remove repeated command --- cpu/stm32_common/periph/flashpage.c | 1 - 1 file changed, 1 deletion(-) diff --git a/cpu/stm32_common/periph/flashpage.c b/cpu/stm32_common/periph/flashpage.c index b98e8ced4f..7d7819eb31 100644 --- a/cpu/stm32_common/periph/flashpage.c +++ b/cpu/stm32_common/periph/flashpage.c @@ -99,7 +99,6 @@ static void _erase_page(void *page_addr) *dst = (uint32_t)0; #elif defined(CPU_FAM_STM32L4) DEBUG("[flashpage] erase: setting the page address\n"); - CNTRL_REG |= FLASH_CR_PER; uint8_t pn; #if FLASHPAGE_NUMOF <= 256 pn = (uint8_t)flashpage_page(dst);