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/servo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stmhal/servo.c') diff --git a/stmhal/servo.c b/stmhal/servo.c index df002b8ae..7885e004e 100644 --- a/stmhal/servo.c +++ b/stmhal/servo.c @@ -158,7 +158,7 @@ STATIC void pyb_servo_print(void (*print)(void *env, const char *fmt, ...), void STATIC mp_obj_t pyb_servo_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 servo number machine_int_t servo_id = mp_obj_get_int(args[0]) - 1; -- cgit v1.2.3