File tree Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change 27
27
extern "C" {
28
28
#endif
29
29
30
- /** TODO: Are we gonna need priorities again?
31
- * If so, this should be a Kconfig!
30
+ /**
31
+ * @brief Advertising module BLE event observer priority.
32
32
*/
33
33
#define BLE_ADV_BLE_OBSERVER_PRIO 0
34
34
35
- /** TODO: what is the purpose of this library being multi-instance?
36
- * If it's not multi-instace, then let it define its own BLE observer
37
- * and let the application register a handler instead of defining an
38
- * instance with a macro..
39
- */
40
-
41
35
/**
42
36
* @brief Declare an instance of a BLE advertising library.
43
37
*/
@@ -188,7 +182,6 @@ struct ble_adv {
188
182
*/
189
183
ble_gap_adv_params_t adv_params ;
190
184
191
- /** TODO: Kconfig */
192
185
#ifdef BLE_GAP_ADV_SET_DATA_SIZE_EXTENDED_CONNECTABLE_MAX_SUPPORTED
193
186
/** Advertising data sets in encoded form. Current and swap buffer */
194
187
uint8_t enc_adv_data [2 ][BLE_GAP_ADV_SET_DATA_SIZE_EXTENDED_CONNECTABLE_MAX_SUPPORTED ];
@@ -345,11 +338,6 @@ int ble_adv_whitelist_reply(struct ble_adv *ble_adv,
345
338
*/
346
339
int ble_adv_restart_without_whitelist (struct ble_adv * ble_adv );
347
340
348
- /** TODO: do we even need this function ?
349
- * It doesn't provide much value on it's only used in one sample in nRF5.
350
- * It's probably just one SD call..
351
- */
352
-
353
341
/**@brief Function for updating advertising data.
354
342
*
355
343
* @details This function can be called if you wish to reconfigure the advertising data The update
Original file line number Diff line number Diff line change @@ -491,16 +491,12 @@ int ble_adv_whitelist_reply(struct ble_adv *ble_adv,
491
491
return - EPERM ;
492
492
}
493
493
494
- /** TODO: what does whitelist support in this module really do?
495
- * it only seems to change the filter policy...
496
- */
497
494
ble_adv -> whitelist_reply_expected = false;
498
495
ble_adv -> whitelist_in_use = (addr_cnt > 0 || irk_cnt > 0 );
499
496
500
497
return 0 ;
501
498
}
502
499
503
- /** TODO: can this be removed? */
504
500
int ble_adv_restart_without_whitelist (struct ble_adv * ble_adv )
505
501
{
506
502
int err ;
@@ -524,7 +520,6 @@ int ble_adv_restart_without_whitelist(struct ble_adv *ble_adv)
524
520
return 0 ;
525
521
}
526
522
527
- /** TODO: can this be removed? */
528
523
int ble_adv_data_update (struct ble_adv * ble_adv , const struct ble_adv_data * adv_data ,
529
524
const struct ble_adv_data * sr_data )
530
525
{
You can’t perform that action at this time.
0 commit comments