mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 01:39:44 +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 (!(getreg32(STM32_RCC_CR) & RCC_CR_HSION))
|
||||
{
|
||||
sem_unlock();
|
||||
return -EPERM;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user