mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix connection param update timeout
This commit is contained in:
parent
ad09955b1f
commit
d624675087
@ -1279,7 +1279,7 @@ UINT32 CalConnectParamTimeout(tL2C_LCB *p_lcb)
|
||||
UINT32 timeout = 6;
|
||||
if (p_lcb != NULL){
|
||||
//1.25 * conn_int *(1+ latency) *32
|
||||
timeout = (40 * ( 1 + p_lcb->current_used_conn_latency) * p_lcb->current_used_conn_interval + 500) / 1000;
|
||||
timeout = (40 * ( 1 + p_lcb->current_used_conn_latency) * p_lcb->current_used_conn_interval + 1000) / 1000;
|
||||
if (timeout < 1){
|
||||
timeout = 1;
|
||||
}else if (timeout > 120){
|
||||
|
Loading…
x
Reference in New Issue
Block a user