Be a little more correct by setting CMDF_WRITE flag, in preparation
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 13 Aug 2007 21:20:35 +0000 (21:20 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 13 Aug 2007 21:20:35 +0000 (21:20 +0000)
for subdevices that support both input and output commands.

demo/ao_waveform.c

index 33bab519cbdf0ba7ad805bdf3e740bbbe810061d..ad6d823123a0d13195502740036fbffc4788b97f 100644 (file)
@@ -115,7 +115,7 @@ int main(int argc, char *argv[])
 
        memset(&cmd,0,sizeof(cmd));
        cmd.subdev = options.subdevice;
-       cmd.flags = 0;
+       cmd.flags = CMDF_WRITE;
        cmd.start_src = TRIG_INT;
        cmd.start_arg = 0;
        cmd.scan_begin_src = TRIG_TIMER;