]> sigrok.org Git - libsigrok.git/blobdiff - hardware/zeroplus-logic-cube/zeroplus.c
use flexible sample limit specification (k/m/g)
[libsigrok.git] / hardware / zeroplus-logic-cube / zeroplus.c
index 58b2cc1d99a1dd08150dcab49fc068cf9de322a5..5f6ededb1c0192f89b138d2261f4ac94b90baa38 100644 (file)
@@ -472,7 +472,8 @@ static int hw_set_configuration(int device_index, int capability, void *value)
        case HWCAP_PROBECONFIG:
                return configure_probes((GSList *) value);
        case HWCAP_LIMIT_SAMPLES:
-               limit_samples = strtoull(value, NULL, 10);
+               tmp_u64 = value;
+               limit_samples = *tmp_u64;
                return SIGROK_OK;
        default:
                return SIGROK_ERR;