scpi_vxi: Fix incomplete reads (bug #790)

This commit is contained in:
Stefan Brüns 2016-05-02 02:51:19 +02:00 committed by Uwe Hermann
parent a53acd7d46
commit b951fae32c
1 changed files with 1 additions and 1 deletions

View 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 */
}