Skip to content

Commit

Permalink
samples: bluetooth: Fix scan stop error in central_multilink sample
Browse files Browse the repository at this point in the history
Outputs error code to console if bt_le_scan_stop() fails

Signed-off-by: Ramana Gudipudi <[email protected]>
  • Loading branch information
ramana-g-123 authored and kartben committed Jan 29, 2025
1 parent 3dc60a6 commit 93946dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions samples/bluetooth/central_multilink/src/central_multilink.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ static void device_found(const bt_addr_le_t *addr, int8_t rssi, uint8_t type,
return;
}

if (bt_le_scan_stop()) {
printk("Scanning successfully stopped\n");
err = bt_le_scan_stop();
if (err != 0) {
printk("Failed to stop scanning (err %d)\n", err);
return;
}

Expand Down

0 comments on commit 93946dc

Please sign in to comment.