Reduced the timer latency to 1 (minimum allowed) some users are reporting better results

This commit is contained in:
Salvador E. Tropea 2017-05-03 12:57:22 -03:00
parent dc93d5805a
commit 08d2c63485
1 changed files with 2 additions and 2 deletions

View File

@ -464,8 +464,8 @@ int main(int argc, char **argv)
error();
}
/* 2 is the ideal value, it means 500 Hz polling */
if (ftdi_set_latency_timer(&ftdic, 2) < 0) {
/* 1 is the fastest polling, it means 1 kHz polling */
if (ftdi_set_latency_timer(&ftdic, 1) < 0) {
fprintf(stderr, "Failed to set latency timer (%s).\n", ftdi_get_error_string(&ftdic));
error();
}