]> sigrok.org Git - libsigrok.git/blobdiff - hardware/saleae-logic/saleae-logic.c
use flexible sample limit specification (k/m/g)
[libsigrok.git] / hardware / saleae-logic / saleae-logic.c
index 2c09f8c44c6910be9a9f2e1fa404ed55a29a8832..07491fa085427889112e05bcb12b5e22a9773959 100644 (file)
@@ -511,7 +511,8 @@ static int hw_set_configuration(int device_index, int capability, void *value)
        } else if (capability == HWCAP_PROBECONFIG) {
                ret = configure_probes((GSList *) value);
        } else if (capability == HWCAP_LIMIT_SAMPLES) {
-               limit_samples = strtoull(value, NULL, 10);
+               tmp_u64 = value;
+               limit_samples = *tmp_u64;
                ret = SIGROK_OK;
        } else {
                ret = SIGROK_ERR;