We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afd4529 commit 7651395Copy full SHA for 7651395
1 file changed
nimble/controller/src/ble_ll_ctrl.c
@@ -34,10 +34,6 @@
34
#include "controller/ble_ll_tmr.h"
35
#include "ble_ll_conn_priv.h"
36
37
-#ifndef min
38
-#define min(a, b) ((a) < (b) ? (a) : (b))
39
-#endif
40
-
41
#if MYNEWT_VAL(BLE_LL_ROLE_PERIPHERAL) || MYNEWT_VAL(BLE_LL_ROLE_CENTRAL)
42
43
/* To use spec sample data for testing */
@@ -2135,7 +2131,7 @@ ble_ll_conn_chk_conn_update_req(const struct ble_ll_conn_upd_req *req)
2135
2131
/* The transmitWindowSize shall be a multiple of 1.25 ms in the range
2136
2132
* 1.25 ms to the lesser of 10 ms and (connInterval - 1.25 ms).
2137
2133
*/
2138
- if ((req->winsize < 1) || (req->winsize > min(8, req->interval - 1))) {
2134
+ if ((req->winsize < 1) || (req->winsize > MIN(8, req->interval - 1))) {
2139
return false;
2140
}
2141
0 commit comments