]> sigrok.org Git - libsigrok.git/commitdiff
rigol-ds: Use *OPC? command rather than delay to await completion.
authorMartin Ling <redacted>
Fri, 17 Jan 2014 14:22:09 +0000 (14:22 +0000)
committerMartin Ling <redacted>
Mon, 20 Jan 2014 00:24:57 +0000 (00:24 +0000)
hardware/rigol-ds/api.c

index 2b86e7d2e869d50a5ba41da6131351aee86d1bdf..04196a46c4c33c728616bd9196e5df7efeef9b51 100644 (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)