diff --git a/src/stm32/stm32f0.c b/src/stm32/stm32f0.c index 4153f526..9c536915 100644 --- a/src/stm32/stm32f0.c +++ b/src/stm32/stm32f0.c @@ -211,7 +211,7 @@ armcm_main(void) FLASH->ACR = (1 << FLASH_ACR_LATENCY_Pos) | FLASH_ACR_PRFTBE; // Configure main clock - if (CONFIG_MACH_STM32F042 || CONFIG_STM32_CLOCK_REF_INTERNAL) + if (CONFIG_MACH_STM32F042 && CONFIG_STM32_CLOCK_REF_INTERNAL) hsi48_setup(); else pll_setup();