Skip to content

Commit cd165a2

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

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
@@ -605,6 +605,10 @@ void stm32_main(uint32_t reset_mode) {
605605
extint_init0();
606606
timer_init0();
607607

608+
#if MICROPY_PY_NETWORK
609+
mod_network_init();
610+
#endif
611+
608612
#if MICROPY_HW_ENABLE_CAN
609613
pyb_can_init0();
610614
#endif
@@ -697,10 +701,6 @@ void stm32_main(uint32_t reset_mode) {
697701
servo_init();
698702
#endif
699703

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

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

0 commit comments

Comments
 (0)