1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

sys/shell/sc_nimble_netif: cleanup timing params

This commit is contained in:
Hauke Petersen 2020-07-06 15:40:52 +02:00
parent 32f086e98d
commit dbec7a3e94

View File

@ -343,8 +343,8 @@ static void _cmd_close(int handle)
static void _cmd_update(int handle, int itvl, int timeout) static void _cmd_update(int handle, int itvl, int timeout)
{ {
struct ble_gap_upd_params params; struct ble_gap_upd_params params;
params.itvl_min = (uint16_t)((itvl * 1000) / BLE_HCI_CONN_ITVL); params.itvl_min = (uint16_t)BLE_GAP_CONN_ITVL_MS(itvl);
params.itvl_max = (uint16_t)((itvl * 1000) / BLE_HCI_CONN_ITVL); params.itvl_max = (uint16_t)BLE_GAP_CONN_ITVL_MS(itvl);
params.latency = 0; params.latency = 0;
params.supervision_timeout = (uint16_t)(timeout / 10); params.supervision_timeout = (uint16_t)(timeout / 10);
params.min_ce_len = BLE_GAP_INITIAL_CONN_MIN_CE_LEN; params.min_ce_len = BLE_GAP_INITIAL_CONN_MIN_CE_LEN;