*
* 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
*
*/
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);