rigol-ds: Send *OPC? after commands that don't return a value.
Fixes #933. We'd already had this problem elsewhere and thus have this wrapper function that does this where necessary. It just wasn't in use on these two call sites, which was causing timing problems when used over tcp-raw or VXI transports.
This commit is contained in:
parent
bf8a02b633
commit
ef7fb1abff
|
@ -595,10 +595,10 @@ SR_PRIV int rigol_ds_receive(int fd, int revents, void *cb_data)
|
|||
|
||||
if (devc->num_block_bytes == 0) {
|
||||
if (devc->model->series->protocol >= PROTOCOL_V4) {
|
||||
if (sr_scpi_send(sdi->conn, ":WAV:START %d",
|
||||
if (rigol_ds_config_set(sdi, ":WAV:START %d",
|
||||
devc->num_channel_bytes + 1) != SR_OK)
|
||||
return TRUE;
|
||||
if (sr_scpi_send(sdi->conn, ":WAV:STOP %d",
|
||||
if (rigol_ds_config_set(sdi, ":WAV:STOP %d",
|
||||
MIN(devc->num_channel_bytes + ACQ_BLOCK_SIZE,
|
||||
devc->analog_frame_size)) != SR_OK)
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in New Issue