From: Frank Mori Hess Date: Sun, 25 Jul 2004 00:39:39 +0000 (+0000) Subject: insert usleep() in loop X-Git-Tag: r0_7_22~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2afaa069bd3ad18a53e0048aec50f7bfd6d176b1;p=comedilib.git insert usleep() in loop --- diff --git a/testing/cmd_1.c b/testing/cmd_1.c index 843f672..b2b7d2d 100644 --- a/testing/cmd_1.c +++ b/testing/cmd_1.c @@ -249,6 +249,7 @@ int test_cmd_write_fast_1chan(void) { printf("E: comedi_get_buffer_contents() returned %i\n", ret); }else if(ret == 0) break; + usleep(10000); } // cancel needed in the case of stop_src==TRIG_NONE if(comedi_cancel(device, subdevice))