sump/ols: Wait 10ms for hw response to make pl2303 reliable

This commit is contained in:
Peter Stuge 2010-05-09 23:11:08 +02:00
parent 71dda10656
commit 5b15b41e62
1 changed files with 2 additions and 2 deletions

View File

@ -257,8 +257,8 @@ static int hw_init(char *deviceinfo)
free(l->data); free(l->data);
} }
/* 2ms should do (enough time for 28 bytes to go over the bus). */ /* 2ms isn't enough for reliable transfer with pl2303, let's try 10 */
usleep(2000); usleep(10000);
final_devcnt = 0; final_devcnt = 0;
g_poll(fds, devcnt, 1); g_poll(fds, devcnt, 1);