mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
stm322_flash:missing unlock on F1 HSI off path
This commit is contained in:
@@ -290,6 +290,7 @@ ssize_t up_progmem_erasepage(size_t page)
|
|||||||
#if !defined(CONFIG_STM32_STM32F40XX)
|
#if !defined(CONFIG_STM32_STM32F40XX)
|
||||||
if (!(getreg32(STM32_RCC_CR) & RCC_CR_HSION))
|
if (!(getreg32(STM32_RCC_CR) & RCC_CR_HSION))
|
||||||
{
|
{
|
||||||
|
sem_unlock();
|
||||||
return -EPERM;
|
return -EPERM;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user