BLE: Fix const correctness of ::Gap::getRandomAddressType

pull/6932/head
Vincent Coubard 2018-04-17 14:03:57 +01:00
parent 51e1c76b4a
commit dfbf383614
2 changed files with 2 additions and 2 deletions

View File

@ -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
);

View File

@ -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