-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reusing net.en.start() #424
Comments
Confirmed. For a possible quick-fix I added
|
Yep, net.en.setup() doesn't run twise, because status_get(STATUS_ETH_SETUP) still true after deinit. |
Sure that's really enough? I think I had tested that before and it wasn't sufficient. |
Yes, there is no way to avoid the following code from the net.en.setup() otherwise: |
Network driver (tested on lan8720) works only once.
2 different scenarios:
1. DHCP after DHCP
/ > net.en.setup()
/ > net.en.start(false)
[..IP is ok..]
/ > net.en.stop()
/ > net.en.setup()
/ > net.en.start(false)
stdin:1: 503316483:can't connect check cable
stack traceback:
[C]: in field 'start'
stdin:1: in main chunk
[C]: in ?
2. Static IP if DHCP failed
/ > net.en.setup()
[..DHCP server is unpulgged..]
/ > net.en.start(false)
stdin:1: 503316483:can't connect check cable
stack traceback:
[C]: in field 'start'
stdin:1: in main chunk
[C]: in ?
/ > net.en.setup( net.packip(192,168,1,200), net.packip(255,255,255,0), net.packip(192,168,1,1), net.packip(8,8,8,8), net.packip(8,8,4,4) )
/ > net.en.start(false)
/ > net.stat()
...
ip address 0.0.0.0 netmask 0.0.0.0
gw address 0.0.0.0
The text was updated successfully, but these errors were encountered: