fix(examples): Fix typos in NimBLE example comments

This commit is contained in:
Rasmus Buurman
2025-11-05 00:18:03 +01:00
committed by Rahul Tank
parent e66fc82cb7
commit ced7d1c776
4 changed files with 8 additions and 8 deletions

View File

@@ -51,7 +51,7 @@ static void start_advertising(void) {
adv_fields.le_role = BLE_GAP_LE_ROLE_PERIPHERAL;
adv_fields.le_role_is_present = 1;
/* Set advertiement fields */
/* Set advertisement fields */
rc = ble_gap_adv_set_fields(&adv_fields);
if (rc != 0) {
ESP_LOGE(TAG, "failed to set advertising data, error code: %d", rc);
@@ -74,7 +74,7 @@ static void start_advertising(void) {
return;
}
/* Set non-connetable and general discoverable mode to be a beacon */
/* Set non-connectable and general discoverable mode to be a beacon */
adv_params.conn_mode = BLE_GAP_CONN_MODE_NON;
adv_params.disc_mode = BLE_GAP_DISC_MODE_GEN;

View File

@@ -80,7 +80,7 @@ static void start_advertising(void) {
adv_fields.le_role = BLE_GAP_LE_ROLE_PERIPHERAL;
adv_fields.le_role_is_present = 1;
/* Set advertiement fields */
/* Set advertisement fields */
rc = ble_gap_adv_set_fields(&adv_fields);
if (rc != 0) {
ESP_LOGE(TAG, "failed to set advertising data, error code: %d", rc);
@@ -107,7 +107,7 @@ static void start_advertising(void) {
return;
}
/* Set non-connetable and general discoverable mode to be a beacon */
/* Set undirected connectable and general discoverable mode */
adv_params.conn_mode = BLE_GAP_CONN_MODE_UND;
adv_params.disc_mode = BLE_GAP_DISC_MODE_GEN;

View File

@@ -80,7 +80,7 @@ static void start_advertising(void) {
adv_fields.le_role = BLE_GAP_LE_ROLE_PERIPHERAL;
adv_fields.le_role_is_present = 1;
/* Set advertiement fields */
/* Set advertisement fields */
rc = ble_gap_adv_set_fields(&adv_fields);
if (rc != 0) {
ESP_LOGE(TAG, "failed to set advertising data, error code: %d", rc);
@@ -107,7 +107,7 @@ static void start_advertising(void) {
return;
}
/* Set non-connetable and general discoverable mode to be a beacon */
/* Set undirected connectable and general discoverable mode */
adv_params.conn_mode = BLE_GAP_CONN_MODE_UND;
adv_params.disc_mode = BLE_GAP_DISC_MODE_GEN;

View File

@@ -95,7 +95,7 @@ static void start_advertising(void) {
adv_fields.le_role = BLE_GAP_LE_ROLE_PERIPHERAL;
adv_fields.le_role_is_present = 1;
/* Set advertiement fields */
/* Set advertisement fields */
rc = ble_gap_adv_set_fields(&adv_fields);
if (rc != 0) {
ESP_LOGE(TAG, "failed to set advertising data, error code: %d", rc);
@@ -122,7 +122,7 @@ static void start_advertising(void) {
return;
}
/* Set non-connetable and general discoverable mode to be a beacon */
/* Set undirected connectable and general discoverable mode */
adv_params.conn_mode = BLE_GAP_CONN_MODE_UND;
adv_params.disc_mode = BLE_GAP_DISC_MODE_GEN;