mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-01 14:50:03 +00:00
porting/npl/linux: Fix stuck callouts
`ble_npl_callout.c_active` is not reset after callout is executed, so only the first callout fires and subsequent are not scheduled at all. Fixes https://github.com/apache/mynewt-nimble/issues/1771
This commit is contained in:
committed by
Szymon Janc
parent
baf2930d32
commit
f8d60614b7
@@ -32,7 +32,7 @@ ble_npl_callout_timer_cb(union sigval sv)
|
||||
{
|
||||
struct ble_npl_callout *c = (struct ble_npl_callout *)sv.sival_ptr;
|
||||
assert(c);
|
||||
|
||||
c->c_active = false;
|
||||
if (c->c_evq) {
|
||||
ble_npl_eventq_put(c->c_evq, &c->c_ev);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user