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
1 changed files with 1 additions and 1 deletions

View File

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