aboutsummaryrefslogtreecommitdiffstats
path: root/iceprog
diff options
context:
space:
mode:
authorSalvador E. Tropea <salvador@inti.gob.ar>2017-05-03 12:57:22 -0300
committerSalvador E. Tropea <salvador@inti.gob.ar>2017-05-03 12:57:22 -0300
commit08d2c6348573fa97743ab07beacb915887016214 (patch)
tree71efa5f68773499cb2d878d4c6bd61b59369e70b /iceprog
parentdc93d5805a42511aa32ad947e97de2495289d87f (diff)
downloadicestorm-08d2c6348573fa97743ab07beacb915887016214.tar.gz
icestorm-08d2c6348573fa97743ab07beacb915887016214.tar.bz2
icestorm-08d2c6348573fa97743ab07beacb915887016214.zip
Reduced the timer latency to 1 (minimum allowed) some users are reporting better results
Diffstat (limited to 'iceprog')
-rw-r--r--iceprog/iceprog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iceprog/iceprog.c b/iceprog/iceprog.c
index 5bb7ed1..5db6dc9 100644
--- a/iceprog/iceprog.c
+++ b/iceprog/iceprog.c
@@ -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();
}