From b5692231e232154cb81abdc6bf6851a8f4f53d9a Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Thu, 26 Aug 2021 16:55:24 +0200 Subject: [PATCH] Fix WINC make_new arg. --- src/omv/ports/stm32/modules/py_winc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/omv/ports/stm32/modules/py_winc.c b/src/omv/ports/stm32/modules/py_winc.c index 113c9ffd1..492c65968 100644 --- a/src/omv/ports/stm32/modules/py_winc.c +++ b/src/omv/ports/stm32/modules/py_winc.c @@ -43,7 +43,7 @@ static winc_obj_t winc_obj = {{(mp_obj_type_t*) &mod_network_nic_type_winc}, fal static mp_obj_t py_winc_make_new(const mp_obj_type_t *type, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *all_args) { static const mp_arg_t allowed_args[] = { - { MP_QSTR_mode, MP_ARG_KW_ONLY | MP_ARG_INT, {.u_int = WINC_MODE_STA } }, + { MP_QSTR_mode, MP_ARG_INT, {.u_int = WINC_MODE_STA } }, }; // parse args