mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-06 05:14:45 +00:00
nimble/host: Remove redundant check in connection latency
* The `params->latency` is uint16_t and BLE_HCI_CONN_LATENCY_MIN is 0 which is why we can drop it.
This commit is contained in:
committed by
Szymon Janc
parent
09466ab810
commit
33a5574444
@@ -4659,8 +4659,7 @@ ble_gap_check_conn_params(uint8_t phy, const struct ble_gap_conn_params *params)
|
||||
}
|
||||
|
||||
/* Check connection latency */
|
||||
if ((params->latency < BLE_HCI_CONN_LATENCY_MIN) ||
|
||||
(params->latency > BLE_HCI_CONN_LATENCY_MAX)) {
|
||||
if (params->latency > BLE_HCI_CONN_LATENCY_MAX) {
|
||||
return BLE_ERR_INV_HCI_CMD_PARMS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user