Skip to content

Commit

Permalink
Samples: Bluetooth: Fix PAwR sample failed to set subevent data
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ryanjh authored and MaureenHelm committed Mar 29, 2024
1 parent e8d4a68 commit 2759a35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/bluetooth/periodic_adv_rsp/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ int main(void)
}

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) {
printk("Scanning failed to start (err %d)\n", err);
return 0;
Expand Down

0 comments on commit 2759a35

Please sign in to comment.