From: Peter Stuge Date: Sun, 9 May 2010 21:11:08 +0000 (+0200) Subject: sump/ols: Wait 10ms for hw response to make pl2303 reliable X-Git-Tag: libsigrok-0.1.0~503 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=5b15b41e623e755e31cdc699f9d542d69d7e61c7;p=libsigrok.git sump/ols: Wait 10ms for hw response to make pl2303 reliable --- diff --git a/hardware/openbench-logic-sniffer/ols.c b/hardware/openbench-logic-sniffer/ols.c index 5742da19..f7c6bfe6 100644 --- a/hardware/openbench-logic-sniffer/ols.c +++ b/hardware/openbench-logic-sniffer/ols.c @@ -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);