fdsf
Fork of nRF51822 by
Diff: btle/btle_advertising.cpp
- Revision:
- 17:c3e11bb6cb72
- Parent:
- 0:eff01767de02
- Child:
- 22:c6ee8136847e
--- a/btle/btle_advertising.cpp Fri May 30 13:32:48 2014 +0100 +++ b/btle/btle_advertising.cpp Wed Jun 04 09:19:57 2014 +0100 @@ -27,17 +27,20 @@ /**************************************************************************/ error_t btle_advertising_start(void) { - ble_gap_adv_params_t adv_para = { 0 }; + ble_gap_adv_params_t adv_para = {0}; - /* Set the default advertising parameters */ - adv_para.type = BLE_GAP_ADV_TYPE_ADV_IND ; - adv_para.p_peer_addr = NULL ; /* Undirected advertising */ - adv_para.fp = BLE_GAP_ADV_FP_ANY ; - adv_para.p_whitelist = NULL ; - adv_para.interval = (CFG_GAP_ADV_INTERVAL_MS*8)/5 ; /* Advertising interval in units of 0.625 ms */ - adv_para.timeout = CFG_GAP_ADV_TIMEOUT_S ; + /* Set the default advertising parameters */ + adv_para.type = BLE_GAP_ADV_TYPE_ADV_IND; + adv_para.p_peer_addr = NULL; /* Undirected advertising */ + adv_para.fp = BLE_GAP_ADV_FP_ANY; + adv_para.p_whitelist = NULL; + adv_para.interval = (CFG_GAP_ADV_INTERVAL_MS * 8) / 5; /* Advertising + * interval in + * units of 0.625 + * ms */ + adv_para.timeout = CFG_GAP_ADV_TIMEOUT_S; - ASSERT_STATUS( sd_ble_gap_adv_start(&adv_para) ); + ASSERT_STATUS( sd_ble_gap_adv_start(&adv_para)); - return ERROR_NONE; + return ERROR_NONE; }