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:
Deomid rojer Ryabkov
2024-09-06 08:29:45 +02:00
committed by Szymon Janc
parent baf2930d32
commit f8d60614b7
+1 -1
View File
@@ -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 {