diff --git a/wireless/bluetooth/bt_gatt.c b/wireless/bluetooth/bt_gatt.c index 684e74c3fa..ae8a76cbb8 100644 --- a/wireless/bluetooth/bt_gatt.c +++ b/wireless/bluetooth/bt_gatt.c @@ -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; }