Skip to content

Commit a5a25f4

Browse files
more logic errors
1 parent 7afb745 commit a5a25f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

connectivity/FEATURE_BLE/source/generic/GapImpl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2402,16 +2402,16 @@ void Gap::signal_advertising_report(
24022402
);
24032403
} else {
24042404
/* check if there already is a RPA like that in the list of other pending reports */
2405-
PendingAdvertisingReportEvent *found_pending_event = _reports_pending_address_resolution.find(
2405+
PendingAdvertisingReportEvent *duplicate_pending_event = _reports_pending_address_resolution.find(
24062406
[&event](PendingAdvertisingReportEvent& pending_event){
24072407
return (pending_event.get_pending_event().getPeerAddress() == event.getPeerAddress());
24082408
}
24092409
);
24102410

2411-
ble_error_t ret = BLE_ERROR_NOT_FOUND;
2411+
ble_error_t ret = BLE_ERROR_NONE;
24122412

24132413
/* if there is already an item with the same address pending don't kick off resolution*/
2414-
if (!found_pending_event) {
2414+
if (!duplicate_pending_event) {
24152415
ret = _address_registry.queue_resolve_address(event.getPeerAddress());
24162416
}
24172417

0 commit comments

Comments
 (0)