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:
parent
0bed5dd459
commit
c16d9699a3
1 changed files with 2 additions and 1 deletions
|
@ -36,7 +36,8 @@ static void connected(struct bt_conn *conn, uint8_t err)
|
||||||
|
|
||||||
printk("Connected to %s\n", addr);
|
printk("Connected to %s\n", addr);
|
||||||
|
|
||||||
g_conn = conn;
|
__ASSERT_NO_MSG(g_conn == conn);
|
||||||
|
|
||||||
SET_FLAG(flag_is_connected);
|
SET_FLAG(flag_is_connected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue