Skip to content

Commit 8f357e8

Browse files
nimble/ll: replace min() macro with MIN()
Replace min() macro usage with MIN() for portability reasons.
1 parent a7bdd2f commit 8f357e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nimble/controller/src/ble_ll_ctrl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2131,7 +2131,7 @@ ble_ll_conn_chk_conn_update_req(const struct ble_ll_conn_upd_req *req)
21312131
/* The transmitWindowSize shall be a multiple of 1.25 ms in the range
21322132
* 1.25 ms to the lesser of 10 ms and (connInterval - 1.25 ms).
21332133
*/
2134-
if ((req->winsize < 1) || (req->winsize > min(8, req->interval - 1))) {
2134+
if ((req->winsize < 1) || (req->winsize > MIN(8, req->interval - 1))) {
21352135
return false;
21362136
}
21372137

0 commit comments

Comments
 (0)