rigol-ds: Fix an issue causing only one channel to be acquired.
This fixes bug #1018.
This commit is contained in:
parent
350501d0c3
commit
ce97fc3f6a
|
@ -723,7 +723,8 @@ SR_PRIV int rigol_ds_receive(int fd, int revents, void *cb_data)
|
||||||
if (devc->data_source != DATA_SOURCE_LIVE)
|
if (devc->data_source != DATA_SOURCE_LIVE)
|
||||||
rigol_ds_set_wait_event(devc, WAIT_BLOCK);
|
rigol_ds_set_wait_event(devc, WAIT_BLOCK);
|
||||||
}
|
}
|
||||||
if (!sr_scpi_read_complete(scpi)) {
|
/* End acquisition when data for all channels is acquired. */
|
||||||
|
if (!sr_scpi_read_complete(scpi) && !devc->channel_entry->next) {
|
||||||
sr_err("Read should have been completed");
|
sr_err("Read should have been completed");
|
||||||
packet.type = SR_DF_FRAME_END;
|
packet.type = SR_DF_FRAME_END;
|
||||||
sr_session_send(sdi, &packet);
|
sr_session_send(sdi, &packet);
|
||||||
|
|
Loading…
Reference in New Issue