wireless/bluetooth: correct judgment conditions

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2023-08-07 16:06:58 +08:00 committed by Xiang Xiao
parent 72b9d97560
commit 21d2cc741f

View File

@ -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;
} }