forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
CircuitPython version
Adafruit CircuitPython 9.2.0-beta.1-13-g9c49eb34f6 on 2024-10-17; Raspberry Pi Pico W with rp2040Code/REPL
>>> import wifi
>>> wifi.radio.start_dhcp()
Zurückverfolgung (jüngste Aufforderung zuletzt):
Datei "<stdin>", Zeile 1, in <module>
NotImplementedError: ipv6
>>> wifi.radio.start_dhcp(ipv6=False)Behavior
see above
Description
The first call to start_dhcp() without arguments fails, although the default for ipv6 is False. The second call works.
I think the problem is related to the initialization of the arguments:
static const mp_arg_t allowed_args[] = {
{ MP_QSTR_ipv4, MP_ARG_KW_ONLY | MP_ARG_BOOL, { .u_bool = MP_ROM_TRUE } },
{ MP_QSTR_ipv6, MP_ARG_KW_ONLY | MP_ARG_BOOL, { .u_bool = MP_ROM_FALSE } },
};
Other code within CP that initializes boolean arguments uses {.u_bool = false} instead.
Additional information
No response