mirror of
https://github.com/apache/nuttx.git
synced 2025-12-06 17:23:49 +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;
|
||||
uint8_t i;
|
||||
|
||||
if (!conn && conn->state != BT_CONN_CONNECTED)
|
||||
if (!conn || conn->state != BT_CONN_CONNECTED)
|
||||
{
|
||||
return -ENOTCONN;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user