fix review comments

pull/8738/head
paul-szczepanek-arm 2018-11-12 15:52:57 +00:00 committed by Vincent Coubard
parent 8733d52da9
commit 00da0e571a
2 changed files with 19 additions and 19 deletions

View File

@ -998,7 +998,7 @@ struct clock_accuracy_t : SafeEnum<clock_accuracy_t, uint8_t >{
*
* @return Parts per million as a number.
*/
uint16_t getPpm() {
uint16_t get_ppm() {
uint16_t ppm = 0;
switch(value()) {

View File

@ -1571,24 +1571,24 @@ void GenericGap::update_random_address()
);
}
}
} else {
ble::address_t address;
if (!getUnresolvableRandomAddress(address)) {
return;
}
ble_error_t err = _pal_gap.set_random_address(
address
);
if (err) {
return;
}
_address_type = LegacyAddressType::RANDOM_PRIVATE_NON_RESOLVABLE;
_address = address;
}
ble::address_t address;
if (!getUnresolvableRandomAddress(address)) {
return;
}
ble_error_t err = _pal_gap.set_random_address(
address
);
if (err) {
return;
}
_address_type = LegacyAddressType::RANDOM_PRIVATE_NON_RESOLVABLE;
_address = address;
}
bool GenericGap::getUnresolvableRandomAddress(ble::address_t& address) {
@ -2189,7 +2189,7 @@ void GenericGap::on_enhanced_connection_complete(
connection_interval * 1250,
connection_latency,
supervision_timeout * 10,
master_clock_accuracy.getPpm()
master_clock_accuracy.get_ppm()
};
_eventHandler->onConnectionComplete(event);