Skip to content

Commit

Permalink
applications: nrf5340_audio: Handle known disconnect reason
Browse files Browse the repository at this point in the history
- Due to high ACL traffic we might get a cancelled ACL creation.
- Change error print for these cases to a warning.
- OCT-NONE

Signed-off-by: Alexander Svensen <[email protected]>
  • Loading branch information
alexsven authored and anangl committed Jun 18, 2024
1 parent 82e66cd commit a87c172
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,12 @@ static void connected_cb(struct bt_conn *conn, uint8_t err)
(void)bt_addr_le_to_str(bt_conn_get_dst(conn), addr, sizeof(addr));

if (err) {
LOG_ERR("ACL connection to addr: %s, conn: %p, failed, error %d", addr,
(void *)conn, err);
if (err == BT_HCI_ERR_UNKNOWN_CONN_ID) {
LOG_WRN("ACL connection to addr: %s timed out, will try again", addr);
} else {
LOG_ERR("ACL connection to addr: %s, conn: %p, failed, error %d", addr,
(void *)conn, err);
}

bt_conn_unref(conn);

Expand Down

0 comments on commit a87c172

Please sign in to comment.