mirror of https://github.com/ARMmbed/mbed-os.git
add a missing call to us_ticker_disable_interrupt from us_ticker_remove_event.
parent
2deb3706d2
commit
ac11358455
|
@ -95,7 +95,9 @@ void us_ticker_remove_event(ticker_event_t *obj) {
|
|||
if (head == obj) {
|
||||
// first in the list, so just drop me
|
||||
head = obj->next;
|
||||
if (obj->next != NULL) {
|
||||
if (obj->next == NULL) {
|
||||
us_ticker_disable_interrupt();
|
||||
} else {
|
||||
us_ticker_set_interrupt(head->timestamp);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue