diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-04-20 00:16:30 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-04-20 00:16:30 +0100 |
| commit | d689430e790bfbd40a4fc3139b118aee5576baf7 (patch) | |
| tree | e25efdfc49cea0b743e457c2798b538e25ff0a4f /stmhal/led.c | |
| parent | c7c4a8439735ff7617f78b5b6c0cdfb05ae88656 (diff) | |
stmhal: Add SPI class.
Also some updates to compile with latest changes to core py.
Diffstat (limited to 'stmhal/led.c')
| -rw-r--r-- | stmhal/led.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/led.c b/stmhal/led.c index c00081cea..d30c72157 100644 --- a/stmhal/led.c +++ b/stmhal/led.c @@ -197,7 +197,7 @@ void led_obj_print(void (*print)(void *env, const char *fmt, ...), void *env, mp STATIC mp_obj_t led_obj_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const mp_obj_t *args) { // check arguments - mp_check_nargs(n_args, 1, 1, n_kw, false); + mp_arg_check_num(n_args, n_kw, 1, 1, false); // get led number machine_int_t led_id = mp_obj_get_int(args[0]) - 1; |
