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:
parent
e8d4a68f8e
commit
2759a35a18
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue