summaryrefslogtreecommitdiffstatshomepage
path: root/py/builtinhelp.c
diff options
context:
space:
mode:
authorGlenn Moloney <glenn.moloney@gmail.com>2024-06-30 22:01:32 +1000
committerDamien George <damien@micropython.org>2024-08-12 16:13:21 +1000
commit868d311a2361c9125d70833b8757a859a539e8cc (patch)
tree3458c61ddd3b06872f190b20decc53b83bba8690 /py/builtinhelp.c
parent91f4a6b9e902c066c98bda3799e01c8c6c0783ea (diff)
downloadmicropython-868d311a2361c9125d70833b8757a859a539e8cc.tar.gz
micropython-868d311a2361c9125d70833b8757a859a539e8cc.zip
esp32/network_lan: Make LAN.active(state) succeed if already in state.
This PR ensures that `network.LAN.active(True/False)` will succeed if the LAN is already in the desired state. Currently, `lan.active(True)` will raise an `OSError` exception if the LAN is already in the desired state. This is inconsistent with `network.WLAN.active(True/False)` and causes `lan.active(True)` to raise an exception after a soft reset (causing common network startup scripts to fail for LAN interfaces). Signed-off-by: Glenn Moloney <glenn.moloney@gmail.com>
Diffstat (limited to 'py/builtinhelp.c')
0 files changed, 0 insertions, 0 deletions