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. * @return Parts per million as a number.
*/ */
uint16_t getPpm() { uint16_t get_ppm() {
uint16_t ppm = 0; uint16_t ppm = 0;
switch(value()) { switch(value()) {

View File

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