]> sigrok.org Git - libsigrok.git/blobdiff - src/scpi/scpi.c
Improve readability and clarity of some numbers.
[libsigrok.git] / src / scpi / scpi.c
index ce3cb99d2362be792549d8e1970a76ebb1b35f57..0835c90b60e0cacb40e1c2d2925179ebe28f8a59 100644 (file)
@@ -26,7 +26,7 @@
 #define LOG_PREFIX "scpi"
 
 #define SCPI_READ_RETRIES 100
-#define SCPI_READ_RETRY_TIMEOUT 10000
+#define SCPI_READ_RETRY_TIMEOUT_US (10 * 1000)
 
 /**
  * Parse a string representation of a boolean-like value into a gboolean.
@@ -578,7 +578,7 @@ SR_PRIV int sr_scpi_get_opc(struct sr_scpi_dev_inst *scpi)
                sr_scpi_get_bool(scpi, SCPI_CMD_OPC, &opc);
                if (opc)
                        return SR_OK;
-               g_usleep(SCPI_READ_RETRY_TIMEOUT);
+               g_usleep(SCPI_READ_RETRY_TIMEOUT_US);
        }
 
        return SR_ERR;