Merge pull request #80 from set-soft/less_latency

Reduced the timer latency to 1 (minimum allowed) some users are repor…
This commit is contained in:
Clifford Wolf 2017-05-03 20:54:33 +02:00 committed by GitHub
commit 0f64fdf573
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();
}