Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
598aad21
Commit
598aad21
authored
Sep 03, 2015
by
Daniel Campora
Browse files
cc3200: Fix bug in pybsleep remove.
parent
475c60ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
cc3200/misc/mpcallback.c
View file @
598aad21
...
...
@@ -66,7 +66,7 @@ mp_obj_t mpcallback_new (mp_obj_t parent, mp_obj_t handler, const mp_cb_methods_
self
->
methods
=
(
mp_cb_methods_t
*
)
methods
;
self
->
isenabled
=
enable
;
// remove it in case it was already registered
mpcallback_remove
(
self
->
parent
);
mpcallback_remove
(
parent
);
mp_obj_list_append
(
&
MP_STATE_PORT
(
mpcallback_obj_list
),
self
);
return
self
;
}
...
...
cc3200/mods/pybsleep.c
View file @
598aad21
...
...
@@ -213,7 +213,7 @@ void pybsleep_add (const mp_obj_t obj, WakeUpCB_t wakeup) {
sleep_obj
->
obj
=
obj
;
sleep_obj
->
wakeup
=
wakeup
;
// remove it in case it was already registered
pybsleep_remove
(
sleep_
obj
);
pybsleep_remove
(
obj
);
mp_obj_list_append
(
&
MP_STATE_PORT
(
pybsleep_obj_list
),
sleep_obj
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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