free(l->data);
}
- /* 2ms should do (enough time for 28 bytes to go over the bus). */
- usleep(2000);
+ /* 2ms isn't enough for reliable transfer with pl2303, let's try 10 */
+ usleep(10000);
final_devcnt = 0;
g_poll(fds, devcnt, 1);
} 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 if (capability == HWCAP_CAPTURE_RATIO) {
capture_ratio = strtol(value, NULL, 10);