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
e911cfdb
Commit
e911cfdb
authored
May 01, 2014
by
Dave Hylands
Browse files
Fix pin initialization when a mode argument is provided
parent
1f85d625
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/pin.c
View file @
e911cfdb
...
...
@@ -179,7 +179,7 @@ STATIC mp_obj_t pin_make_new(mp_obj_t self_in, uint n_args, uint n_kw, const mp_
if
(
n_args
>=
2
)
{
// pin mode given, so configure this GPIO
mp_obj_t
args2
[
3
]
=
{(
mp_obj_t
)
pin
,
args
2
[
1
],
MP_OBJ_NULL
};
mp_obj_t
args2
[
3
]
=
{(
mp_obj_t
)
pin
,
args
[
1
],
MP_OBJ_NULL
};
if
(
n_args
==
3
)
{
args2
[
2
]
=
args
[
2
];
}
...
...
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