Commit b951fae3 authored by Stefan Brüns's avatar Stefan Brüns Committed by Uwe Hermann

scpi_vxi: Fix incomplete reads (bug #790)

parent a53acd7d
......@@ -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 */
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment