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
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue