X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=examples%2Fserial_test.c;h=0631504048a8d810cbb0f8a2ed5246eca1a87eca;hp=e88303023fb7a78e0faf3b2caea581de325c282c;hb=db9c7eba8ff28219a33b5494a3d60aa487d87ef1;hpb=f690061114c913feb9e55c4e2ea05e2ac79c969b diff --git a/examples/serial_test.c b/examples/serial_test.c index e883030..0631504 100644 --- a/examples/serial_test.c +++ b/examples/serial_test.c @@ -134,7 +134,7 @@ int main(int argc, char **argv) * * TODO: Make these parameters settable from the command line * - * Parameters are choosen that sending a continous stream of 0x55 + * Parameters are chosen that sending a continuous stream of 0x55 * should give a square wave * */ @@ -159,7 +159,7 @@ int main(int argc, char **argv) else f = ftdi_read_data(ftdi, buf, sizeof(buf)); if (f<0) - usleep(1000); + usleep(1 * 1000000); else if(f> 0 && !do_write) { fprintf(stderr, "read %d bytes\n", f);