Skip to content

Commit 16ef611

Browse files
tannewtdhalbert
authored andcommitted
shared-bindings: Check that extra args aren't provided to digitalio.DigitalInOut on construction. (adafruit#189)
1 parent f570b53 commit 16ef611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/digitalio/DigitalInOut.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
//|
6262
STATIC mp_obj_t digitalio_digitalinout_make_new(const mp_obj_type_t *type,
6363
mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) {
64-
mp_arg_check_num(n_args, n_kw, 1, MP_OBJ_FUN_ARGS_MAX, true);
64+
mp_arg_check_num(n_args, n_kw, 1, 1, true);
6565

6666
digitalio_digitalinout_obj_t *self = m_new_obj(digitalio_digitalinout_obj_t);
6767
self->base.type = &digitalio_digitalinout_type;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy