Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
bbe39b62
Commit
bbe39b62
authored
Feb 11, 2014
by
Damien George
Browse files
Merge pull request #276 from dhylands/cleanup-warnings
Bah - Removed a couple of warnings for teensy that I didn't notice before.
parents
8d90a382
6a6ac8e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
teensy/led.c
View file @
bbe39b62
...
...
@@ -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
,
"<LED %lu>"
,
self
->
led_id
);
}
...
...
teensy/servo.c
View file @
bbe39b62
...
...
@@ -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
,
"<Servo %lu>"
,
self
->
servo_id
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment