Skip to content

Commit

Permalink
porting/npl/linux: Fix stuck callouts
Browse files Browse the repository at this point in the history
`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 #1771
  • Loading branch information
rojer authored and sjanc committed Sep 6, 2024
1 parent baf2930 commit f8d6061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion porting/npl/linux/src/os_callout.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f8d6061

Please sign in to comment.