]> sigrok.org Git - libsigrok.git/commitdiff
sump/ols: Wait 10ms for hw response to make pl2303 reliable
authorPeter Stuge <redacted>
Sun, 9 May 2010 21:11:08 +0000 (23:11 +0200)
committerPeter Stuge <redacted>
Sun, 9 May 2010 21:11:08 +0000 (23:11 +0200)
hardware/openbench-logic-sniffer/ols.c

index 5742da195bccdf4c7d080b9d7796b811e9266d8d..f7c6bfe6c8255ba49756a8dc3992516c024855a0 100644 (file)
@@ -257,8 +257,8 @@ static int hw_init(char *deviceinfo)
                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);