struct usbtmc_scpi *uscpi = priv;
int read_length;
+ if (uscpi->response_length == MAX_READ_LENGTH
+ && uscpi->response_bytes_read == uscpi->response_length)
+ if (scpi_usbtmc_read_begin(uscpi) != SR_OK)
+ return SR_ERR;
+
if (uscpi->response_bytes_read >= uscpi->response_length)
return SR_ERR;
{
struct usbtmc_scpi *uscpi = priv;
+ if (uscpi->response_length == MAX_READ_LENGTH
+ && uscpi->response_bytes_read == uscpi->response_length)
+ scpi_usbtmc_read_begin(uscpi);
+
return (uscpi->response_bytes_read >= uscpi->response_length);
}