Skip to content

Commit 00da0e5

Browse files
paul-szczepanek-armpan-
authored andcommitted
fix review comments
1 parent 8733d52 commit 00da0e5

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

features/FEATURE_BLE/ble/pal/GapTypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ struct clock_accuracy_t : SafeEnum<clock_accuracy_t, uint8_t >{
998998
*
999999
* @return Parts per million as a number.
10001000
*/
1001-
uint16_t getPpm() {
1001+
uint16_t get_ppm() {
10021002
uint16_t ppm = 0;
10031003

10041004
switch(value()) {

features/FEATURE_BLE/source/generic/GenericGap.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,24 +1571,24 @@ void GenericGap::update_random_address()
15711571
);
15721572
}
15731573
}
1574-
} else {
1575-
ble::address_t address;
1574+
}
15761575

1577-
if (!getUnresolvableRandomAddress(address)) {
1578-
return;
1579-
}
1576+
ble::address_t address;
15801577

1581-
ble_error_t err = _pal_gap.set_random_address(
1582-
address
1583-
);
1578+
if (!getUnresolvableRandomAddress(address)) {
1579+
return;
1580+
}
15841581

1585-
if (err) {
1586-
return;
1587-
}
1582+
ble_error_t err = _pal_gap.set_random_address(
1583+
address
1584+
);
15881585

1589-
_address_type = LegacyAddressType::RANDOM_PRIVATE_NON_RESOLVABLE;
1590-
_address = address;
1586+
if (err) {
1587+
return;
15911588
}
1589+
1590+
_address_type = LegacyAddressType::RANDOM_PRIVATE_NON_RESOLVABLE;
1591+
_address = address;
15921592
}
15931593

15941594
bool GenericGap::getUnresolvableRandomAddress(ble::address_t& address) {
@@ -2189,7 +2189,7 @@ void GenericGap::on_enhanced_connection_complete(
21892189
connection_interval * 1250,
21902190
connection_latency,
21912191
supervision_timeout * 10,
2192-
master_clock_accuracy.getPpm()
2192+
master_clock_accuracy.get_ppm()
21932193
};
21942194

21952195
_eventHandler->onConnectionComplete(event);

0 commit comments

Comments
 (0)