From 2c71fd09b9a6f159b27e53cd9e801a8f34afedd0 Mon Sep 17 00:00:00 2001 From: Deomid rojer Ryabkov Date: Mon, 2 Sep 2024 22:48:34 +0300 Subject: [PATCH] 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 --- porting/npl/linux/src/os_callout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/porting/npl/linux/src/os_callout.c b/porting/npl/linux/src/os_callout.c index d3091fa9c8..76c8b2eefd 100644 --- a/porting/npl/linux/src/os_callout.c +++ b/porting/npl/linux/src/os_callout.c @@ -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 {