1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/nimble/autoconn: fix conn timeout calculation

The timeout parameter for nimble_netif_connect() is given in ms
and the same is true for NIMBLE_AUTOCONN_CONN_TIMEOUT. So there
should be no conversion between the autoconn parameter and the
value passed to nimble_netif.
This commit is contained in:
Hauke Petersen 2020-07-06 15:24:48 +02:00
parent 28b595e72e
commit bd48f06de4

View File

@ -287,7 +287,7 @@ int nimble_autoconn_update(const nimble_autoconn_params_t *params,
_conn_params.supervision_timeout = (params->conn_super_to / 10);
_conn_params.min_ce_len = 0;
_conn_params.max_ce_len = 0;
_conn_timeout = ((params->conn_timeout * 1000) / BLE_HCI_SCAN_ITVL);
_conn_timeout = params->conn_timeout;
/* we use the same values to updated existing connections */
struct ble_gap_upd_params conn_update_params;