Skip to content

Commit ced7d1c

Browse files
rabuurahult-github
authored andcommitted
fix(examples): Fix typos in NimBLE example comments
1 parent e66fc82 commit ced7d1c

File tree

4 files changed

+8
-8
lines changed
  • examples/bluetooth/ble_get_started/nimble
    • NimBLE_Beacon/main/src
    • NimBLE_Connection/main/src
    • NimBLE_GATT_Server/main/src
    • NimBLE_Security/main/src

4 files changed

+8
-8
lines changed

examples/bluetooth/ble_get_started/nimble/NimBLE_Beacon/main/src/gap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static void start_advertising(void) {
5151
adv_fields.le_role = BLE_GAP_LE_ROLE_PERIPHERAL;
5252
adv_fields.le_role_is_present = 1;
5353

54-
/* Set advertiement fields */
54+
/* Set advertisement fields */
5555
rc = ble_gap_adv_set_fields(&adv_fields);
5656
if (rc != 0) {
5757
ESP_LOGE(TAG, "failed to set advertising data, error code: %d", rc);
@@ -74,7 +74,7 @@ static void start_advertising(void) {
7474
return;
7575
}
7676

77-
/* Set non-connetable and general discoverable mode to be a beacon */
77+
/* Set non-connectable and general discoverable mode to be a beacon */
7878
adv_params.conn_mode = BLE_GAP_CONN_MODE_NON;
7979
adv_params.disc_mode = BLE_GAP_DISC_MODE_GEN;
8080

examples/bluetooth/ble_get_started/nimble/NimBLE_Connection/main/src/gap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static void start_advertising(void) {
8080
adv_fields.le_role = BLE_GAP_LE_ROLE_PERIPHERAL;
8181
adv_fields.le_role_is_present = 1;
8282

83-
/* Set advertiement fields */
83+
/* Set advertisement fields */
8484
rc = ble_gap_adv_set_fields(&adv_fields);
8585
if (rc != 0) {
8686
ESP_LOGE(TAG, "failed to set advertising data, error code: %d", rc);
@@ -107,7 +107,7 @@ static void start_advertising(void) {
107107
return;
108108
}
109109

110-
/* Set non-connetable and general discoverable mode to be a beacon */
110+
/* Set undirected connectable and general discoverable mode */
111111
adv_params.conn_mode = BLE_GAP_CONN_MODE_UND;
112112
adv_params.disc_mode = BLE_GAP_DISC_MODE_GEN;
113113

examples/bluetooth/ble_get_started/nimble/NimBLE_GATT_Server/main/src/gap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static void start_advertising(void) {
8080
adv_fields.le_role = BLE_GAP_LE_ROLE_PERIPHERAL;
8181
adv_fields.le_role_is_present = 1;
8282

83-
/* Set advertiement fields */
83+
/* Set advertisement fields */
8484
rc = ble_gap_adv_set_fields(&adv_fields);
8585
if (rc != 0) {
8686
ESP_LOGE(TAG, "failed to set advertising data, error code: %d", rc);
@@ -107,7 +107,7 @@ static void start_advertising(void) {
107107
return;
108108
}
109109

110-
/* Set non-connetable and general discoverable mode to be a beacon */
110+
/* Set undirected connectable and general discoverable mode */
111111
adv_params.conn_mode = BLE_GAP_CONN_MODE_UND;
112112
adv_params.disc_mode = BLE_GAP_DISC_MODE_GEN;
113113

examples/bluetooth/ble_get_started/nimble/NimBLE_Security/main/src/gap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static void start_advertising(void) {
9595
adv_fields.le_role = BLE_GAP_LE_ROLE_PERIPHERAL;
9696
adv_fields.le_role_is_present = 1;
9797

98-
/* Set advertiement fields */
98+
/* Set advertisement fields */
9999
rc = ble_gap_adv_set_fields(&adv_fields);
100100
if (rc != 0) {
101101
ESP_LOGE(TAG, "failed to set advertising data, error code: %d", rc);
@@ -122,7 +122,7 @@ static void start_advertising(void) {
122122
return;
123123
}
124124

125-
/* Set non-connetable and general discoverable mode to be a beacon */
125+
/* Set undirected connectable and general discoverable mode */
126126
adv_params.conn_mode = BLE_GAP_CONN_MODE_UND;
127127
adv_params.disc_mode = BLE_GAP_DISC_MODE_GEN;
128128

0 commit comments

Comments
 (0)