rigol-ds: Use *OPC? command rather than delay to await completion.

This commit is contained in:
Martin Ling 2014-01-17 14:22:09 +00:00
parent 7788579e66
commit 51bfe5363a
1 changed files with 1 additions and 6 deletions

View File

@ -231,12 +231,7 @@ static int set_cfg(const struct sr_dev_inst *sdi, const char *format, ...)
if (ret != SR_OK)
return SR_ERR;
/* When setting a bunch of parameters in a row, the DS1052E scrambles
* some of them unless there is at least 100ms delay in between. */
sr_spew("delay %dms", 100);
g_usleep(100000);
return SR_OK;
return sr_scpi_get_opc(sdi->conn);
}
static int init(struct sr_context *sr_ctx)