BLE: rename ConnectionParameters::getFilterPolicy into getFilter for consistency.

pull/8904/head
Vincent Coubard 2018-12-03 17:11:28 +00:00
parent 5abf2f08fa
commit ed426c5b45
2 changed files with 3 additions and 3 deletions

View File

@ -282,7 +282,7 @@ public:
*
* @return The initiator policy.
*/
initiator_filter_policy_t getFilterPolicy() const
initiator_filter_policy_t getFilter() const
{
return _filterPolicy;
}

View File

@ -681,7 +681,7 @@ ble_error_t GenericGap::connect(
return _pal_gap.create_connection(
connectionParams.getScanIntervalArray()[0],
connectionParams.getScanWindowArray()[0],
connectionParams.getFilterPolicy(),
connectionParams.getFilter(),
(pal::connection_peer_address_type_t::type) peerAddressType.value(),
peerAddress,
connectionParams.getOwnAddressType(),
@ -707,7 +707,7 @@ ble_error_t GenericGap::connect(
}
return _pal_gap.extended_create_connection(
connectionParams.getFilterPolicy(),
connectionParams.getFilter(),
connectionParams.getOwnAddressType(),
adjusted_address_type,
peerAddress,