yokogawa-dlm: Lower timeout to increase throughput and fix data acq bug
This commit is contained in:
parent
af3487ec28
commit
0028d5a1ee
|
@ -674,8 +674,8 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data)
|
|||
devc->current_channel = devc->enabled_channels;
|
||||
dlm_channel_data_request(sdi);
|
||||
|
||||
/* Call our callback when data comes in or after 50ms. */
|
||||
sr_scpi_source_add(sdi->session, scpi, G_IO_IN, 10,
|
||||
/* Call our callback when data comes in or after 5ms. */
|
||||
sr_scpi_source_add(sdi->session, scpi, G_IO_IN, 5,
|
||||
dlm_data_receive, (void *)sdi);
|
||||
|
||||
return SR_OK;
|
||||
|
|
|
@ -962,6 +962,7 @@ SR_PRIV int dlm_data_receive(int fd, int revents, void *cb_data)
|
|||
/* Don't care about return value here. */
|
||||
dlm_acquisition_stop(sdi->conn);
|
||||
g_array_free(data, TRUE);
|
||||
dlm_channel_data_request(sdi);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue