mirror of https://github.com/Desuuuu/klipper.git
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:
parent
5ef930454e
commit
b80d2f7706
|
@ -211,7 +211,7 @@ armcm_main(void)
|
||||||
FLASH->ACR = (1 << FLASH_ACR_LATENCY_Pos) | FLASH_ACR_PRFTBE;
|
FLASH->ACR = (1 << FLASH_ACR_LATENCY_Pos) | FLASH_ACR_PRFTBE;
|
||||||
|
|
||||||
// Configure main clock
|
// Configure main clock
|
||||||
if (CONFIG_MACH_STM32F042 || CONFIG_STM32_CLOCK_REF_INTERNAL)
|
if (CONFIG_MACH_STM32F042 && CONFIG_STM32_CLOCK_REF_INTERNAL)
|
||||||
hsi48_setup();
|
hsi48_setup();
|
||||||
else
|
else
|
||||||
pll_setup();
|
pll_setup();
|
||||||
|
|
Loading…
Reference in New Issue