From 16ef611b0bd9e76583b0a7e761d8ac2e00c8ff6d Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Tue, 22 Aug 2017 12:54:01 -0700 Subject: [PATCH] shared-bindings: Check that extra args aren't provided to digitalio.DigitalInOut on construction. (#189) --- shared-bindings/digitalio/DigitalInOut.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared-bindings/digitalio/DigitalInOut.c b/shared-bindings/digitalio/DigitalInOut.c index 36ac61aef9..83134d0f89 100644 --- a/shared-bindings/digitalio/DigitalInOut.c +++ b/shared-bindings/digitalio/DigitalInOut.c @@ -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;