aboutsummaryrefslogtreecommitdiffstats
path: root/iceprog/iceprog.c
diff options
context:
space:
mode:
Diffstat (limited to 'iceprog/iceprog.c')
-rw-r--r--iceprog/iceprog.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/iceprog/iceprog.c b/iceprog/iceprog.c
index b0a114f..0e0b587 100644
--- a/iceprog/iceprog.c
+++ b/iceprog/iceprog.c
@@ -454,6 +454,11 @@ int main(int argc, char **argv)
error();
}
+ if (ftdi_set_latency_timer(&ftdic, 2) < 0) {
+ fprintf(stderr, "Failed to set latency timer (%s).\n", ftdi_get_error_string(&ftdic));
+ error();
+ }
+
if (ftdi_set_bitmode(&ftdic, 0xff, BITMODE_MPSSE) < 0) {
fprintf(stderr, "Failed set BITMODE_MPSSE on iCE FTDI USB device.\n");
error();