Skip to content

Commit 76b92b8

Browse files
committed
BLE: correct misspelling: prefered -> preferred
1 parent 7c49aeb commit 76b92b8

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

features/FEATURE_BLE/ble/pal/GenericAccessService.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,27 +44,27 @@ struct GenericAccessService {
4444
virtual ~GenericAccessService() { }
4545

4646
/**
47-
* Acquire the peripheral prefered connection parameters stored in the GAP
47+
* Acquire the peripheral preferred connection parameters stored in the GAP
4848
* GATT service.
4949
*
5050
* @param parameters: If the call succeed will contain the value of
51-
* the peripheral prefered connection parameters characteristic.
51+
* the peripheral preferred connection parameters characteristic.
5252
*
5353
* @return BLE_ERROR_NONE in case of success or the appropriate error code
5454
* otherwise.
5555
*
5656
* @see Bluetooth 4.2 Vol 3 PartC: 12.3 - Peripheral Preferred Connection
5757
* Parameters Characteristic
5858
*/
59-
virtual ble_error_t get_peripheral_prefered_connection_parameters(
59+
virtual ble_error_t get_peripheral_preferred_connection_parameters(
6060
::Gap::ConnectionParams_t& parameters
6161
) = 0;
6262

6363
/**
64-
* set the value of the peripheral prefered connection parameters stored in
64+
* set the value of the peripheral preferred connection parameters stored in
6565
* the GAP GATT service.
6666
*
67-
* @param parameters: If the peripheral prefered connection parameters
67+
* @param parameters: If the peripheral preferred connection parameters
6868
* to set.
6969
*
7070
* @return BLE_ERROR_NONE in case of success or the appropriate error code
@@ -73,7 +73,7 @@ struct GenericAccessService {
7373
* @see Bluetooth 4.2 Vol 3 PartC: 12.3 - Peripheral Preferred Connection
7474
* Parameters Characteristic
7575
*/
76-
virtual ble_error_t set_peripheral_prefered_connection_parameters(
76+
virtual ble_error_t set_peripheral_preferred_connection_parameters(
7777
const ::Gap::ConnectionParams_t& parameters
7878
) = 0;
7979

features/FEATURE_BLE/source/generic/GenericGap.tpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static bool is_in_range(T value, T lower_bound, T higher_bound)
6868
* Return true of the connection parameters are acceptable as preferred connection
6969
* parameters.
7070
*
71-
* Prefered connection parameters unlike actual connection parameters allow the
71+
* Preferred connection parameters unlike actual connection parameters allow the
7272
* max connection interval, min connection interval and connection supervision
7373
* timeout to be equal to 0xFFFF. When it is the case that value can be
7474
* interpreted as "non specific".

features/FEATURE_BLE/targets/TARGET_CORDIO/CordioPalGenericAccessService.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class GenericAccessService : public ::ble::pal::GenericAccessService {
8686

8787
#endif // Disabled until reworked and reintroduced to GattServer API
8888

89-
virtual ble_error_t get_peripheral_prefered_connection_parameters(
89+
virtual ble_error_t get_peripheral_preferred_connection_parameters(
9090
::Gap::ConnectionParams_t& parameters
9191
) {
9292
#if BLE_FEATURE_GATT_SERVER
@@ -97,7 +97,7 @@ class GenericAccessService : public ::ble::pal::GenericAccessService {
9797
#endif // BLE_FEATURE_GATT_SERVER
9898
}
9999

100-
virtual ble_error_t set_peripheral_prefered_connection_parameters(
100+
virtual ble_error_t set_peripheral_preferred_connection_parameters(
101101
const ::Gap::ConnectionParams_t& parameters
102102
) {
103103
#if BLE_FEATURE_GATT_SERVER

features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ void GattServer::add_generic_access_service()
11351135
current_attribute->permissions = ATTS_PERMIT_READ;
11361136

11371137

1138-
// peripheral prefered connection parameters declaration
1138+
// peripheral preferred connection parameters declaration
11391139
currentHandle += 2; // note: incremented by two to get a pointer to the value handle
11401140
++current_attribute;
11411141

@@ -1153,7 +1153,7 @@ void GattServer::add_generic_access_service()
11531153
current_attribute->settings = 0;
11541154
current_attribute->permissions = ATTS_PERMIT_READ;
11551155

1156-
// peripheral prefered connection parameters value
1156+
// peripheral preferred connection parameters value
11571157
++current_attribute;
11581158
const uint8_t default_ppcp_value[] = {
11591159
0xFF, 0xFF, // no specific min connection interval

0 commit comments

Comments
 (0)