From: Stefan BrĂ¼ns Date: Mon, 2 May 2016 00:51:19 +0000 (+0200) Subject: scpi_vxi: Fix incomplete reads (bug #790) X-Git-Tag: libsigrok-0.5.0~396 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b951fae32c71426a6066c121c409a5936f30de62;p=libsigrok.git scpi_vxi: Fix incomplete reads (bug #790) --- diff --git a/src/scpi/scpi_vxi.c b/src/scpi/scpi_vxi.c index b61ced01..51861ee8 100644 --- a/src/scpi/scpi_vxi.c +++ b/src/scpi/scpi_vxi.c @@ -180,7 +180,7 @@ static int scpi_vxi_read_data(void *priv, char *buf, int maxlen) } memcpy(buf, read_resp->data.data_val, read_resp->data.data_len); - vxi->read_complete = read_resp->reason & (RRR_SIZE | RRR_TERM | RRR_END); + vxi->read_complete = read_resp->reason & (RRR_TERM | RRR_END); return read_resp->data.data_len; /* actual number of bytes received */ }