X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fzeroplus-logic-cube%2Fzeroplus.c;h=5f6ededb1c0192f89b138d2261f4ac94b90baa38;hb=2458ea651409c8252d33dba5b5cfe9313f3e4899;hp=58b2cc1d99a1dd08150dcab49fc068cf9de322a5;hpb=9a5c6dcf498b8dfebb8beb848ee6db6b59b173e5;p=libsigrok.git diff --git a/hardware/zeroplus-logic-cube/zeroplus.c b/hardware/zeroplus-logic-cube/zeroplus.c index 58b2cc1d..5f6ededb 100644 --- a/hardware/zeroplus-logic-cube/zeroplus.c +++ b/hardware/zeroplus-logic-cube/zeroplus.c @@ -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;