From dfbf383614872d0eaafd646601344aec70c91eb0 Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Tue, 17 Apr 2018 14:03:57 +0100 Subject: [PATCH] BLE: Fix const correctness of ::Gap::getRandomAddressType --- features/FEATURE_BLE/ble/Gap.h | 2 +- features/FEATURE_BLE/source/Gap.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/FEATURE_BLE/ble/Gap.h b/features/FEATURE_BLE/ble/Gap.h index 148f36edc4..adaf06bc44 100644 --- a/features/FEATURE_BLE/ble/Gap.h +++ b/features/FEATURE_BLE/ble/Gap.h @@ -1068,7 +1068,7 @@ public: * the address in input was not identifiable as a random address. */ static ble_error_t getRandomAddressType( - BLEProtocol::AddressBytes_t address, + const BLEProtocol::AddressBytes_t address, RandomAddressType_t* addressType ); diff --git a/features/FEATURE_BLE/source/Gap.cpp b/features/FEATURE_BLE/source/Gap.cpp index c8650f27c7..425f833106 100644 --- a/features/FEATURE_BLE/source/Gap.cpp +++ b/features/FEATURE_BLE/source/Gap.cpp @@ -17,7 +17,7 @@ #include "ble/Gap.h" ble_error_t Gap::getRandomAddressType( - BLEProtocol::AddressBytes_t address, + const BLEProtocol::AddressBytes_t address, RandomAddressType_t* type ) { // see section Device address in Bluetooth Link Layer specification