From 76b92b82e2fd71cc0da60ec28c0287feec2cbdb0 Mon Sep 17 00:00:00 2001 From: Lingkai Dong Date: Tue, 7 Apr 2020 15:15:48 +0100 Subject: [PATCH] BLE: correct misspelling: prefered -> preferred --- features/FEATURE_BLE/ble/pal/GenericAccessService.h | 12 ++++++------ features/FEATURE_BLE/source/generic/GenericGap.tpp | 2 +- .../TARGET_CORDIO/CordioPalGenericAccessService.h | 4 ++-- .../TARGET_CORDIO/source/CordioGattServer.cpp | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/features/FEATURE_BLE/ble/pal/GenericAccessService.h b/features/FEATURE_BLE/ble/pal/GenericAccessService.h index c7bb0682f9..353c469caf 100644 --- a/features/FEATURE_BLE/ble/pal/GenericAccessService.h +++ b/features/FEATURE_BLE/ble/pal/GenericAccessService.h @@ -44,11 +44,11 @@ struct GenericAccessService { virtual ~GenericAccessService() { } /** - * Acquire the peripheral prefered connection parameters stored in the GAP + * Acquire the peripheral preferred connection parameters stored in the GAP * GATT service. * * @param parameters: If the call succeed will contain the value of - * the peripheral prefered connection parameters characteristic. + * the peripheral preferred connection parameters characteristic. * * @return BLE_ERROR_NONE in case of success or the appropriate error code * otherwise. @@ -56,15 +56,15 @@ struct GenericAccessService { * @see Bluetooth 4.2 Vol 3 PartC: 12.3 - Peripheral Preferred Connection * Parameters Characteristic */ - virtual ble_error_t get_peripheral_prefered_connection_parameters( + virtual ble_error_t get_peripheral_preferred_connection_parameters( ::Gap::ConnectionParams_t& parameters ) = 0; /** - * set the value of the peripheral prefered connection parameters stored in + * set the value of the peripheral preferred connection parameters stored in * the GAP GATT service. * - * @param parameters: If the peripheral prefered connection parameters + * @param parameters: If the peripheral preferred connection parameters * to set. * * @return BLE_ERROR_NONE in case of success or the appropriate error code @@ -73,7 +73,7 @@ struct GenericAccessService { * @see Bluetooth 4.2 Vol 3 PartC: 12.3 - Peripheral Preferred Connection * Parameters Characteristic */ - virtual ble_error_t set_peripheral_prefered_connection_parameters( + virtual ble_error_t set_peripheral_preferred_connection_parameters( const ::Gap::ConnectionParams_t& parameters ) = 0; diff --git a/features/FEATURE_BLE/source/generic/GenericGap.tpp b/features/FEATURE_BLE/source/generic/GenericGap.tpp index db876a36c3..4e8f431659 100644 --- a/features/FEATURE_BLE/source/generic/GenericGap.tpp +++ b/features/FEATURE_BLE/source/generic/GenericGap.tpp @@ -68,7 +68,7 @@ static bool is_in_range(T value, T lower_bound, T higher_bound) * Return true of the connection parameters are acceptable as preferred connection * parameters. * - * Prefered connection parameters unlike actual connection parameters allow the + * Preferred connection parameters unlike actual connection parameters allow the * max connection interval, min connection interval and connection supervision * timeout to be equal to 0xFFFF. When it is the case that value can be * interpreted as "non specific". diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/CordioPalGenericAccessService.h b/features/FEATURE_BLE/targets/TARGET_CORDIO/CordioPalGenericAccessService.h index 6247e58211..1a8e4d952b 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/CordioPalGenericAccessService.h +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/CordioPalGenericAccessService.h @@ -86,7 +86,7 @@ public: #endif // Disabled until reworked and reintroduced to GattServer API - virtual ble_error_t get_peripheral_prefered_connection_parameters( + virtual ble_error_t get_peripheral_preferred_connection_parameters( ::Gap::ConnectionParams_t& parameters ) { #if BLE_FEATURE_GATT_SERVER @@ -97,7 +97,7 @@ public: #endif // BLE_FEATURE_GATT_SERVER } - virtual ble_error_t set_peripheral_prefered_connection_parameters( + virtual ble_error_t set_peripheral_preferred_connection_parameters( const ::Gap::ConnectionParams_t& parameters ) { #if BLE_FEATURE_GATT_SERVER diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp b/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp index 11169fa082..d6b1fb379c 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.cpp @@ -1135,7 +1135,7 @@ void GattServer::add_generic_access_service() current_attribute->permissions = ATTS_PERMIT_READ; - // peripheral prefered connection parameters declaration + // peripheral preferred connection parameters declaration currentHandle += 2; // note: incremented by two to get a pointer to the value handle ++current_attribute; @@ -1153,7 +1153,7 @@ void GattServer::add_generic_access_service() current_attribute->settings = 0; current_attribute->permissions = ATTS_PERMIT_READ; - // peripheral prefered connection parameters value + // peripheral preferred connection parameters value ++current_attribute; const uint8_t default_ppcp_value[] = { 0xFF, 0xFF, // no specific min connection interval