Skip to content

Commit 8ba9e01

Browse files
committed
stm32/main: Init network stack before boot.py.
Signed-off-by: Andrew Leech <[email protected]>
1 parent a7a186f commit 8ba9e01

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ports/stm32/main.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,10 @@ void stm32_main(uint32_t reset_mode) {
604604
extint_init0();
605605
timer_init0();
606606

607+
#if MICROPY_PY_NETWORK
608+
mod_network_init();
609+
#endif
610+
607611
#if MICROPY_HW_ENABLE_CAN
608612
pyb_can_init0();
609613
#endif
@@ -696,10 +700,6 @@ void stm32_main(uint32_t reset_mode) {
696700
servo_init();
697701
#endif
698702

699-
#if MICROPY_PY_NETWORK
700-
mod_network_init();
701-
#endif
702-
703703
// At this point everything is fully configured and initialised.
704704

705705
// Run main.py (or whatever else a board configures at this stage).

0 commit comments

Comments
 (0)