Skip to content

Commit e4496e2

Browse files
committed
native/platform: Fixed some missing initialisation for older hardware
1 parent 3e24734 commit e4496e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platforms/native/platform.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,10 @@ void platform_init(void)
148148
rcc_periph_clock_enable(RCC_USB);
149149
rcc_periph_clock_enable(RCC_GPIOA);
150150
rcc_periph_clock_enable(RCC_GPIOB);
151-
if (platform_hwversion() >= 6) {
151+
if (platform_hwversion() >= 6)
152152
rcc_periph_clock_enable(RCC_GPIOC);
153+
if (platform_hwversion() >= 1)
153154
rcc_periph_clock_enable(RCC_TIM1);
154-
}
155155
rcc_periph_clock_enable(RCC_AFIO);
156156
rcc_periph_clock_enable(RCC_CRC);
157157

0 commit comments

Comments
 (0)