This is an automated email from the ASF dual-hosted git repository. janc pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit 55194911f305dc8e00c77a9b513732d9bf2c8994 Author: Guy Mishol <g...@ti.com> AuthorDate: Mon Jul 28 14:10:03 2025 +0300 nimble/host: Convert BLE_L2CAP_RX_FRAG_TIMEOUT to system ticks The value of BLE_L2CAP_RX_FRAG_TIMEOUT is the expiry time for incoming data packets in ms. When used it needs to be converted to system ticks. --- nimble/host/src/ble_l2cap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nimble/host/src/ble_l2cap.c b/nimble/host/src/ble_l2cap.c index 2b979e918..d88f00616 100644 --- a/nimble/host/src/ble_l2cap.c +++ b/nimble/host/src/ble_l2cap.c @@ -289,7 +289,8 @@ ble_l2cap_rx_payload(struct ble_hs_conn *conn, struct ble_l2cap_chan *chan, /* More fragments remain. */ #if MYNEWT_VAL(BLE_L2CAP_RX_FRAG_TIMEOUT) != 0 conn->bhc_rx_timeout = - ble_npl_time_get() + MYNEWT_VAL(BLE_L2CAP_RX_FRAG_TIMEOUT); + ble_npl_time_get() + + ble_npl_time_ms_to_ticks32(MYNEWT_VAL(BLE_L2CAP_RX_FRAG_TIMEOUT)); ble_hs_timer_resched(); #endif