From fb9a16d4f127e92d2f151a512c9b1bf38a064505 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Wed, 23 Oct 2024 09:25:54 -0400 Subject: [PATCH] shared-bindings/wifi/Radio.c: fix default values for start_dhcp_client args --- shared-bindings/wifi/Radio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared-bindings/wifi/Radio.c b/shared-bindings/wifi/Radio.c index 34e48925d3e7..97d09febcce0 100644 --- a/shared-bindings/wifi/Radio.c +++ b/shared-bindings/wifi/Radio.c @@ -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]);