tests: bsim: bluetooth: host: gatt: general: improve conn ref handling

Improved the connection reference handling in the BabbleSim test
project in the Bluetooth Host category.

Signed-off-by: Kamil Piszczek <Kamil.Piszczek@nordicsemi.no>
This commit is contained in:
Kamil Piszczek 2024-01-19 13:39:08 +01:00 committed by Fabio Baltieri
parent 0bed5dd459
commit c16d9699a3
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,8 @@ static void connected(struct bt_conn *conn, uint8_t err)
printk("Connected to %s\n", addr);
g_conn = conn;
__ASSERT_NO_MSG(g_conn == conn);
SET_FLAG(flag_is_connected);
}