From e4496e2e25aaf30dc2f882364ad7ed3cc5c53394 Mon Sep 17 00:00:00 2001 From: dragonmux Date: Sun, 10 Sep 2023 22:56:53 +0100 Subject: [PATCH] native/platform: Fixed some missing initialisation for older hardware --- src/platforms/native/platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platforms/native/platform.c b/src/platforms/native/platform.c index 0d6a44b6f8a..f5ae48b841a 100644 --- a/src/platforms/native/platform.c +++ b/src/platforms/native/platform.c @@ -148,10 +148,10 @@ void platform_init(void) rcc_periph_clock_enable(RCC_USB); rcc_periph_clock_enable(RCC_GPIOA); rcc_periph_clock_enable(RCC_GPIOB); - if (platform_hwversion() >= 6) { + if (platform_hwversion() >= 6) rcc_periph_clock_enable(RCC_GPIOC); + if (platform_hwversion() >= 1) rcc_periph_clock_enable(RCC_TIM1); - } rcc_periph_clock_enable(RCC_AFIO); rcc_periph_clock_enable(RCC_CRC);