8000 esp32/network_lan: Make power arg to constructor optional. · lolsborn/micropython@5801a00 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5801a00

Browse files
petrkrdpgeorge
authored andcommitted
esp32/network_lan: Make power arg to constructor optional.
A value of None for this argument is already supported, so the argument can be made optional.
1 parent 01c1432 commit 5801a00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/esp32/network_lan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ STATIC mp_obj_t get_lan(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_ar
9999
{ MP_QSTR_id, MP_ARG_OBJ, {.u_obj = mp_const_none} },
100100
{ MP_QSTR_mdc, MP_ARG_KW_ONLY | MP_ARG_REQUIRED | MP_ARG_OBJ },
101101
{ MP_QSTR_mdio, MP_ARG_KW_ONLY | MP_ARG_REQUIRED | MP_ARG_OBJ },
102-
{ MP_QSTR_power, MP_ARG_KW_ONLY | MP_ARG_REQUIRED | MP_ARG_OBJ },
102+
{ MP_QSTR_power, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = mp_const_none} },
103103
{ MP_QSTR_phy_addr, MP_ARG_KW_ONLY | MP_ARG_REQUIRED | MP_ARG_INT },
104104
{ MP_QSTR_phy_type, MP_ARG_KW_ONLY | MP_ARG_REQUIRED | MP_ARG_INT },
105105
{ MP_QSTR_clock_mode, MP_ARG_KW_ONLY | MP_ARG_INT, {.u_int = -1} },

0 commit comments

Comments
 (0)
0