stm32: Fix typo causing internal clock to always be used on stm32f042

Reported by Pontus Borg.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-05-28 15:53:30 -04:00
parent 5ef930454e
commit b80d2f7706
1 changed files with 1 additions and 1 deletions

View File

@ -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();