Skip to content

Commit 7b11763

Browse files
rugeGerritsencarlescufi
authored andcommitted
samples: bluetooth: direction_finding_connectionless_rx: Fix sync timeout
The sync timeout is in 10 ms units. The sync_create_timeout_ms variable already takes into account that we want to have a timeout of at least 7 events. Signed-off-by: Rubin Gerritsen <[email protected]>
1 parent be295a7 commit 7b11763

File tree

1 file changed

+1
-1
lines changed
  • samples/bluetooth/direction_finding_connectionless_rx/src

1 file changed

+1
-1
lines changed

samples/bluetooth/direction_finding_connectionless_rx/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ static void create_sync(void)
263263
sync_create_param.options = BT_LE_PER_ADV_SYNC_OPT_SYNC_ONLY_CONST_TONE_EXT;
264264
sync_create_param.sid = per_sid;
265265
sync_create_param.skip = 0;
266-
sync_create_param.timeout = sync_create_timeout_ms * 10 / 10; /* 10 attempts */
266+
sync_create_param.timeout = sync_create_timeout_ms / 10;
267267
err = bt_le_per_adv_sync_create(&sync_create_param, &adv_sync);
268268
if (err != 0) {
269269
printk("failed (err %d)\n", err);

0 commit comments

Comments
 (0)