insert usleep() in loop
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 25 Jul 2004 00:39:39 +0000 (00:39 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 25 Jul 2004 00:39:39 +0000 (00:39 +0000)
testing/cmd_1.c

index 843f6722dfd6ff28f7e1ca89ebd1985f4ed75371..b2b7d2dc587f24a79d1696edb12b2991bd8d9718 100644 (file)
@@ -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))