Skip to content

Commit bbe39b6

Browse files
committed
Merge pull request adafruit#276 from dhylands/cleanup-warnings
Bah - Removed a couple of warnings for teensy that I didn't notice before.
2 parents 8d90a38 + 6a6ac8e commit bbe39b6

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

teensy/led.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ typedef struct _pyb_led_obj_t {
4242
uint led_id;
4343
} pyb_led_obj_t;
4444

45-
void led_obj_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in) {
45+
void led_obj_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) {
4646
pyb_led_obj_t *self = self_in;
47+
(void)kind;
4748
print(env, "<LED %lu>", self->led_id);
4849
}
4950

teensy/servo.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,9 @@ static mp_obj_t servo_obj_attached(mp_obj_t self_in) {
155155
return MP_OBJ_NEW_SMALL_INT(attached);
156156
}
157157

158-
static void servo_obj_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in) {
158+
static void servo_obj_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) {
159159
pyb_servo_obj_t *self = self_in;
160+
(void)kind;
160161
print(env, "<Servo %lu>", self->servo_id);
161162
}
162163

0 commit comments

Comments
 (0)