diff --git a/os/hal/ports/STM32/STM32L5xx/hal_lld.c b/os/hal/ports/STM32/STM32L5xx/hal_lld.c index 0cdc70aca..1e9f2345e 100644 --- a/os/hal/ports/STM32/STM32L5xx/hal_lld.c +++ b/os/hal/ports/STM32/STM32L5xx/hal_lld.c @@ -205,7 +205,7 @@ void stm32_clock_init(void) { #endif /* Reduce the flash WS's for SYSCLK source if they are less than MSI WSs */ - if (STM32_FLASHBITS <= STM32_MSI_FLASHBITS) { + if (STM32_FLASHBITS < STM32_MSI_FLASHBITS) { flash_ws_init(STM32_FLASHBITS); }