summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/pin.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-20 00:16:30 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-20 00:16:30 +0100
commitd689430e790bfbd40a4fc3139b118aee5576baf7 (patch)
treee25efdfc49cea0b743e457c2798b538e25ff0a4f /stmhal/pin.c
parentc7c4a8439735ff7617f78b5b6c0cdfb05ae88656 (diff)
downloadmicropython-d689430e790bfbd40a4fc3139b118aee5576baf7.tar.gz
micropython-d689430e790bfbd40a4fc3139b118aee5576baf7.zip
stmhal: Add SPI class.
Also some updates to compile with latest changes to core py.
Diffstat (limited to 'stmhal/pin.c')
-rw-r--r--stmhal/pin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/pin.c b/stmhal/pin.c
index 3230c8f47b..3a1a0a2dee 100644
--- a/stmhal/pin.c
+++ b/stmhal/pin.c
@@ -161,7 +161,7 @@ STATIC mp_obj_t pin_obj_init(uint n_args, mp_obj_t *args);
// Pin constructor
STATIC mp_obj_t pin_make_new(mp_obj_t self_in, uint n_args, uint n_kw, const mp_obj_t *args) {
- mp_check_nargs(n_args, 1, 3, n_kw, false);
+ mp_arg_check_num(n_args, n_kw, 1, 3, false);
// Run an argument through the mapper and return the result.
const pin_obj_t *pin = pin_find(args[0]);