shared-bindings: Check that extra args aren't provided to digitalio.DigitalInOut on construction. (#189)
This commit is contained in:
parent
f570b53d44
commit
16ef611b0b
@ -61,7 +61,7 @@
|
||||
//|
|
||||
STATIC mp_obj_t digitalio_digitalinout_make_new(const mp_obj_type_t *type,
|
||||
mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) {
|
||||
mp_arg_check_num(n_args, n_kw, 1, MP_OBJ_FUN_ARGS_MAX, true);
|
||||
mp_arg_check_num(n_args, n_kw, 1, 1, true);
|
||||
|
||||
digitalio_digitalinout_obj_t *self = m_new_obj(digitalio_digitalinout_obj_t);
|
||||
self->base.type = &digitalio_digitalinout_type;
|
||||
|
Loading…
Reference in New Issue
Block a user