diff options
| author | Damien George | 2014-04-20 00:16:30 +0100 |
|---|---|---|
| committer | Damien George | 2014-04-20 00:16:30 +0100 |
| commit | d689430e790bfbd40a4fc3139b118aee5576baf7 (patch) | |
| tree | e25efdfc49cea0b743e457c2798b538e25ff0a4f /stmhal/pin.c | |
| parent | c7c4a8439735ff7617f78b5b6c0cdfb05ae88656 (diff) | |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]); |
