]> sigrok.org Git - libsigrok.git/blobdiff - hardware/rigol-ds/api.c
rigol-ds: Use *OPC? command rather than delay to await completion.
[libsigrok.git] / 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)