mirror of
https://github.com/apache/nuttx.git
synced 2025-12-07 10:03:38 +08:00
wireless/bluetooth: correct judgment conditions
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
@@ -1220,7 +1220,7 @@ int bt_gatt_read_multiple(FAR struct bt_conn_s *conn,
|
|||||||
FAR struct bt_buf_s *buf;
|
FAR struct bt_buf_s *buf;
|
||||||
uint8_t i;
|
uint8_t i;
|
||||||
|
|
||||||
if (!conn && conn->state != BT_CONN_CONNECTED)
|
if (!conn || conn->state != BT_CONN_CONNECTED)
|
||||||
{
|
{
|
||||||
return -ENOTCONN;
|
return -ENOTCONN;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user