]> sigrok.org Git - libsigrok.git/commitdiff
scpi_vxi: Fix incomplete reads (bug #790)
authorStefan Brüns <redacted>
Mon, 2 May 2016 00:51:19 +0000 (02:51 +0200)
committerUwe Hermann <redacted>
Mon, 16 May 2016 21:35:10 +0000 (23:35 +0200)
src/scpi/scpi_vxi.c

index b61ced01f2cd15cf0322646062a52aa6ca6abbde..51861ee8b67d027d94b11e9dbf2bc5e5d5dfff65 100644 (file)
@@ -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 */
 }