You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stm32/main: Initialize network before boot.py to fix LAN instantiation.
Move mod_network_init() to run before boot.py instead of after, allowing
network interfaces like network.LAN() to be instantiated in boot.py.
The previous order caused failures when users tried to create network
interfaces in boot.py because the network subsystem wasn't initialized
until after boot.py completed. This change is safe because:
- LWIP is already initialized earlier in main()
- mod_network_init() only initializes the NIC list
- network.country() and network.hostname() still work correctly as
they just set global variables that are used later
Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
0 commit comments