Skip to content

Commit dde9282

Browse files
paul-szczepanek-armDonatien Garnier
authored andcommitted
update to api fixes
1 parent 76f49b2 commit dde9282

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

BLE_PeriodicAdvertising/source/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ class PeriodicDemo : private mbed::NonCopyable<PeriodicDemo>, public ble::Gap::E
264264
}
265265

266266
error = _gap.startScan(
267-
ble::duplicates_filter_t::DISABLE,
268267
ble::scan_duration_t(ble::millisecond_t(SCAN_TIME))
269268
);
270269

@@ -303,7 +302,7 @@ class PeriodicDemo : private mbed::NonCopyable<PeriodicDemo>, public ble::Gap::E
303302
return;
304303
}
305304

306-
ble::AdvertisingDataParser adv_parser(event.getAdvertisingData());
305+
ble::AdvertisingDataParser adv_parser(event.getPayload());
307306

308307
/* parse the advertising payload, looking for a discoverable device */
309308
while (adv_parser.hasNext()) {

0 commit comments

Comments
 (0)