Samples: Bluetooth: Fix PAwR sample failed to set subevent data

Be respectful of PAwR subevents while scheduling scan activities.
The radio will be swtiched from scan to PAwR when it is closed to
the next subevent interval.

Signed-off-by: Ryan Chu <ryan.chu@nordicsemi.no>
This commit is contained in:
Ryan Chu 2024-03-25 15:00:42 +01:00 committed by Maureen Helm
commit 2759a35a18

View file

@ -295,7 +295,8 @@ int main(void)
} }
while (num_synced < MAX_SYNCS) { while (num_synced < MAX_SYNCS) {
err = bt_le_scan_start(BT_LE_SCAN_PASSIVE, device_found); /* Enable continuous scanning */
err = bt_le_scan_start(BT_LE_SCAN_PASSIVE_CONTINUOUS, device_found);
if (err) { if (err) {
printk("Scanning failed to start (err %d)\n", err); printk("Scanning failed to start (err %d)\n", err);
return 0; return 0;