This is an automated email from the ASF dual-hosted git repository.

sjanc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new 8f357e882 nimble/ll: replace min() macro with MIN()
8f357e882 is described below

commit 8f357e8827d5dab0f37182769c459fe66706d595
Author: Manuel Navarrete <[email protected]>
AuthorDate: Fri May 29 13:57:28 2026 +0000

    nimble/ll: replace min() macro with MIN()
    
    Replace min() macro usage with MIN() for portability reasons.
---
 nimble/controller/src/ble_ll_ctrl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nimble/controller/src/ble_ll_ctrl.c 
b/nimble/controller/src/ble_ll_ctrl.c
index 14ab55005..44ed510eb 100644
--- a/nimble/controller/src/ble_ll_ctrl.c
+++ b/nimble/controller/src/ble_ll_ctrl.c
@@ -2131,7 +2131,7 @@ ble_ll_conn_chk_conn_update_req(const struct 
ble_ll_conn_upd_req *req)
     /* The transmitWindowSize shall be a multiple of 1.25 ms in the range
      * 1.25 ms to the lesser of 10 ms and (connInterval - 1.25 ms).
      */
-    if ((req->winsize < 1) || (req->winsize > min(8, req->interval - 1))) {
+    if ((req->winsize < 1) || (req->winsize > MIN(8, req->interval - 1))) {
         return false;
     }
 

Reply via email to