Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions samples/bluetooth/channel_sounding_ras_initiator/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,13 +347,13 @@ static void connected_cb(struct bt_conn *conn, uint8_t err)
if (err) {
bt_conn_unref(conn);
connection = NULL;
}

connection = bt_conn_ref(conn);
} else {
connection = bt_conn_ref(conn);

k_sem_give(&sem_connected);
k_sem_give(&sem_connected);

dk_set_led_on(CON_STATUS_LED);
dk_set_led_on(CON_STATUS_LED);
}
}

static void disconnected_cb(struct bt_conn *conn, uint8_t reason)
Expand Down
10 changes: 5 additions & 5 deletions samples/bluetooth/channel_sounding_ras_reflector/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ static void connected_cb(struct bt_conn *conn, uint8_t err)
if (err) {
bt_conn_unref(conn);
connection = NULL;
}

connection = bt_conn_ref(conn);
} else {
connection = bt_conn_ref(conn);

k_sem_give(&sem_connected);
k_sem_give(&sem_connected);

dk_set_led_on(CON_STATUS_LED);
dk_set_led_on(CON_STATUS_LED);
}
}

static void disconnected_cb(struct bt_conn *conn, uint8_t reason)
Expand Down