From d689430e790bfbd40a4fc3139b118aee5576baf7 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 20 Apr 2014 00:16:30 +0100 Subject: stmhal: Add SPI class. Also some updates to compile with latest changes to core py. --- stmhal/pin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stmhal/pin.c') diff --git a/stmhal/pin.c b/stmhal/pin.c index 3230c8f47..3a1a0a2de 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]); -- cgit v1.2.3