For scoop
Fork of nRF51822 by
Diff: btle/btle_gap.cpp
- Revision:
- 42:120a96d10f90
- Parent:
- 22:c6ee8136847e
- Child:
- 56:a1071b629aa3
--- a/btle/btle_gap.cpp Thu Jul 10 12:12:18 2014 +0100 +++ b/btle/btle_gap.cpp Fri Jul 11 13:52:12 2014 +0100 @@ -33,21 +33,15 @@ { ble_gap_conn_params_t gap_conn_params = {0}; - gap_conn_params.min_conn_interval = msec_to_1_25msec( - CFG_GAP_CONNECTION_MIN_INTERVAL_MS); // in 1.25ms units - gap_conn_params.max_conn_interval = msec_to_1_25msec( - CFG_GAP_CONNECTION_MAX_INTERVAL_MS); // in 1.25ms unit + gap_conn_params.min_conn_interval = msec_to_1_25msec(CFG_GAP_CONNECTION_MIN_INTERVAL_MS); // in 1.25ms units + gap_conn_params.max_conn_interval = msec_to_1_25msec(CFG_GAP_CONNECTION_MAX_INTERVAL_MS); // in 1.25ms unit gap_conn_params.slave_latency = CFG_GAP_CONNECTION_SLAVE_LATENCY; - gap_conn_params.conn_sup_timeout = - CFG_GAP_CONNECTION_SUPERVISION_TIMEOUT_MS / 10; // in 10ms unit + gap_conn_params.conn_sup_timeout = CFG_GAP_CONNECTION_SUPERVISION_TIMEOUT_MS / 10; // in 10ms unit ble_gap_conn_sec_mode_t sec_mode; BLE_GAP_CONN_SEC_MODE_SET_OPEN(&sec_mode); // no security is needed - ASSERT_STATUS( sd_ble_gap_device_name_set(&sec_mode, - (const uint8_t *) - CFG_GAP_LOCAL_NAME, - strlen(CFG_GAP_LOCAL_NAME))); + ASSERT_STATUS( sd_ble_gap_device_name_set(&sec_mode, (const uint8_t *) CFG_GAP_LOCAL_NAME, strlen(CFG_GAP_LOCAL_NAME))); ASSERT_STATUS( sd_ble_gap_appearance_set(CFG_GAP_APPEARANCE)); ASSERT_STATUS( sd_ble_gap_ppcp_set(&gap_conn_params)); ASSERT_STATUS( sd_ble_gap_tx_power_set(CFG_BLE_TX_POWER_LEVEL));