samples: Bluetooth: Fix incorrect comments about adv sets
Several places we simply had /* Create a non-connectable non-scannable advertising set */ regardless of the type of advertising it was. Modified the comment to omit the scannable part and corrected the connectable part. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
4ae093eaf0
commit
04e38ae176
13 changed files with 13 additions and 13 deletions
|
@ -1393,7 +1393,7 @@ static int start_adv(void)
|
|||
};
|
||||
int err;
|
||||
|
||||
/* Create a non-connectable non-scannable advertising set */
|
||||
/* Create a connectable advertising set */
|
||||
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_CONN, NULL, &ext_adv);
|
||||
if (err != 0) {
|
||||
printk("Failed to create advertising set (err %d)\n", err);
|
||||
|
|
|
@ -493,7 +493,7 @@ int main(void)
|
|||
struct bt_data per_ad;
|
||||
uint32_t broadcast_id;
|
||||
|
||||
/* Create a non-connectable non-scannable advertising set */
|
||||
/* Create a connectable advertising set */
|
||||
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_CUSTOM, NULL, &adv);
|
||||
if (err != 0) {
|
||||
printk("Unable to create extended advertising set: %d\n",
|
||||
|
|
|
@ -88,7 +88,7 @@ int broadcaster_multiple(void)
|
|||
/* Use advertising set instance index as SID */
|
||||
adv_param.sid = index;
|
||||
|
||||
/* Create a non-connectable non-scannable advertising set */
|
||||
/* Create a non-connectable advertising set */
|
||||
err = bt_le_ext_adv_create(&adv_param, NULL, &adv[index]);
|
||||
if (err) {
|
||||
printk("Failed to create advertising set %d (err %d)\n",
|
||||
|
|
|
@ -102,7 +102,7 @@ int main(void)
|
|||
return err;
|
||||
}
|
||||
|
||||
/* Create a non-connectable non-scannable advertising set */
|
||||
/* Create a connectable advertising set */
|
||||
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_CONN, NULL, &adv);
|
||||
if (err) {
|
||||
printk("Failed to create advertising set (err %d)\n", err);
|
||||
|
|
|
@ -100,7 +100,7 @@ static void adv_work_handler(struct k_work *work)
|
|||
int err;
|
||||
|
||||
if (ext_adv == NULL) {
|
||||
/* Create a non-connectable non-scannable advertising set */
|
||||
/* Create a connectable advertising set */
|
||||
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_CONN, &adv_cb, &ext_adv);
|
||||
if (err) {
|
||||
printk("Failed to create advertising set (err %d)\n", err);
|
||||
|
|
|
@ -105,7 +105,7 @@ int main(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* Create a non-connectable non-scannable advertising set */
|
||||
/* Create a non-connectable advertising set */
|
||||
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_NCONN, NULL, &adv);
|
||||
if (err) {
|
||||
printk("Failed to create advertising set (err %d)\n", err);
|
||||
|
|
|
@ -617,7 +617,7 @@ static int create_big(struct bt_le_ext_adv **adv, struct bt_iso_big **big)
|
|||
{
|
||||
int err;
|
||||
|
||||
/* Create a non-connectable non-scannable advertising set */
|
||||
/* Create a non-connectable advertising set */
|
||||
LOG_INF("Creating Extended Advertising set");
|
||||
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_NCONN, NULL, adv);
|
||||
if (err != 0) {
|
||||
|
|
|
@ -30,7 +30,7 @@ int main(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* Create a non-connectable non-scannable advertising set */
|
||||
/* Create a non-connectable advertising set */
|
||||
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_NCONN, NULL, &adv);
|
||||
if (err) {
|
||||
printk("Failed to create advertising set (err %d)\n", err);
|
||||
|
|
|
@ -181,7 +181,7 @@ int main(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* Create a non-connectable non-scannable advertising set */
|
||||
/* Create a non-connectable advertising set */
|
||||
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_NCONN, &adv_cb, &pawr_adv);
|
||||
if (err) {
|
||||
printk("Failed to create advertising set (err %d)\n", err);
|
||||
|
|
|
@ -266,7 +266,7 @@ int main(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* Create a non-connectable non-scannable advertising set */
|
||||
/* Create a non-connectable advertising set */
|
||||
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_NCONN, &adv_cb, &pawr_adv);
|
||||
if (err) {
|
||||
printk("Failed to create advertising set (err %d)\n", err);
|
||||
|
|
|
@ -127,7 +127,7 @@ static int setup_extended_adv(struct bt_le_ext_adv **adv)
|
|||
{
|
||||
int err;
|
||||
|
||||
/* Create a non-connectable non-scannable advertising set */
|
||||
/* Create a non-connectable advertising set */
|
||||
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_NCONN, NULL, adv);
|
||||
if (err != 0) {
|
||||
printk("Unable to create extended advertising set: %d\n", err);
|
||||
|
|
|
@ -115,7 +115,7 @@ static int setup_extended_adv(struct bt_le_ext_adv **adv)
|
|||
{
|
||||
int err;
|
||||
|
||||
/* Create a non-connectable non-scannable advertising set */
|
||||
/* Create a non-connectable advertising set */
|
||||
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_NCONN, NULL, adv);
|
||||
if (err != 0) {
|
||||
printk("Unable to create extended advertising set: %d\n", err);
|
||||
|
|
|
@ -750,7 +750,7 @@ int main(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* Create a non-connectable non-scannable advertising set */
|
||||
/* Create a connectable advertising set */
|
||||
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_CONN, NULL, &adv);
|
||||
if (err) {
|
||||
printk("Failed to create advertising set (err %d)\n", err);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue