Skip to content

Commit 578eaaa

Browse files
dragonmuxesden
authored andcommitted
native/platform: Fixed some missing initialisation for older hardware
1 parent d26bf57 commit 578eaaa

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
@@ -152,10 +152,10 @@ void platform_init(void)
152152
rcc_periph_clock_enable(RCC_USB);
153153
rcc_periph_clock_enable(RCC_GPIOA);
154154
rcc_periph_clock_enable(RCC_GPIOB);
155-
if (hwversion >= 6) {
155+
if (hwversion >= 6)
156156
rcc_periph_clock_enable(RCC_GPIOC);
157+
if (hwversion >= 1)
157158
rcc_periph_clock_enable(RCC_TIM1);
158-
}
159159
rcc_periph_clock_enable(RCC_AFIO);
160160
rcc_periph_clock_enable(RCC_CRC);
161161

0 commit comments

Comments
 (0)