From 6a6ac8e4c72f95b1b9cd9920a255be075d9e31b0 Mon Sep 17 00:00:00 2001 From: Dave Hylands Date: Mon, 10 Feb 2014 21:33:03 -0800 Subject: [PATCH] Bah - Removed a couple of warnings for teensy that I didn't notice before. --- teensy/led.c | 3 ++- teensy/servo.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/teensy/led.c b/teensy/led.c index 5eace0d373..f16ba83b39 100644 --- a/teensy/led.c +++ b/teensy/led.c @@ -42,8 +42,9 @@ typedef struct _pyb_led_obj_t { uint led_id; } pyb_led_obj_t; -void led_obj_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in) { +void led_obj_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) { pyb_led_obj_t *self = self_in; + (void)kind; print(env, "", self->led_id); } diff --git a/teensy/servo.c b/teensy/servo.c index 3d6c9420d2..da720c892b 100644 --- a/teensy/servo.c +++ b/teensy/servo.c @@ -155,8 +155,9 @@ static mp_obj_t servo_obj_attached(mp_obj_t self_in) { return MP_OBJ_NEW_SMALL_INT(attached); } -static void servo_obj_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in) { +static void servo_obj_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) { pyb_servo_obj_t *self = self_in; + (void)kind; print(env, "", self->servo_id); }