From b1aea5d0779cdd214b3b3ced44cf7d9f78d96ba1 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 15 Jul 2001 22:47:14 +0000 Subject: [PATCH] Changed prototype of comedi_get_cmd_generic_timed --- testing/cmd_1.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/testing/cmd_1.c b/testing/cmd_1.c index 66afc4a..86ce076 100644 --- a/testing/cmd_1.c +++ b/testing/cmd_1.c @@ -57,7 +57,8 @@ int test_cmd_probe_src_mask(void) ret = comedi_get_cmd_src_mask(device,subdevice,&cmd); if(ret<0){ - printf("E: comedi_get_cmd_src_mask failed\n"); + printf("E: comedi_get_cmd_src_mask failed %s\n", + strerror(errno)); return 0; } printf("command source mask:\n"); @@ -81,7 +82,7 @@ int test_cmd_probe_fast_1chan(void) } printf("command fast 1chan:\n"); - if(comedi_get_cmd_generic_timed(device,subdevice,&cmd)<0){ + if(comedi_get_cmd_generic_timed(device,subdevice,&cmd,1)<0){ printf(" not supported\n"); return 0; } @@ -115,7 +116,7 @@ int test_cmd_read_fast_1chan(void) return 0; } - if(comedi_get_cmd_generic_timed(device,subdevice,&cmd)<0){ + if(comedi_get_cmd_generic_timed(device,subdevice,&cmd,1)<0){ printf(" not supported\n"); return 0; } -- 2.26.2