Skip to content

Commit

Permalink
Merge pull request #9751 from dhalbert/dhcp-arg-defaults
Browse files Browse the repository at this point in the history
fix default values for wifi.Radio.start_dhcp_client()
  • Loading branch information
tannewt authored Oct 23, 2024
2 parents b7af97e + fb9a16d commit c606994
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared-bindings/wifi/Radio.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,8 +732,8 @@ MP_PROPERTY_GETTER(wifi_radio_stations_ap_obj,
static mp_obj_t wifi_radio_start_dhcp_client(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
enum { ARG_ipv4, ARG_ipv6 };
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 } },
{ MP_QSTR_ipv4, MP_ARG_KW_ONLY | MP_ARG_BOOL, { .u_bool = true } },
{ MP_QSTR_ipv6, MP_ARG_KW_ONLY | MP_ARG_BOOL, { .u_bool = false } },
};

wifi_radio_obj_t *self = MP_OBJ_TO_PTR(pos_args[0]);
Expand Down

0 comments on commit c606994

Please sign in to comment.