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
5d05ff14
Commit
5d05ff14
authored
Mar 21, 2017
by
Damien George
Browse files
esp8266/machine_pin: Fix pin.irq() to work when all args are keywords.
parent
b16c3548
Changes
1
Hide whitespace changes
Inline
Side-by-side
esp8266/machine_pin.c
View file @
5d05ff14
...
...
@@ -368,7 +368,7 @@ STATIC mp_obj_t pyb_pin_irq(size_t n_args, const mp_obj_t *pos_args, mp_map_t *k
nlr_raise
(
mp_obj_new_exception_msg
(
&
mp_type_OSError
,
"pin does not have IRQ capabilities"
));
}
if
(
n_args
>
1
)
{
if
(
n_args
>
1
||
kw_args
->
used
!=
0
)
{
// configure irq
mp_obj_t
handler
=
args
[
ARG_handler
].
u_obj
;
uint32_t
trigger
=
args
[
ARG_trigger
].
u_int
;
...
...
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