From 68e11852cf89d7e5a7ceabb1088778aa6d81597f Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Mon, 14 May 2012 14:51:06 +0100 Subject: [PATCH] demo/pwm: Bug fix - should have called comedi_close() The code called close(device) instead of comedi_close(device) where device came from comedi_open. --- demo/pwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/pwm.c b/demo/pwm.c index ede2ec7..e3fbf69 100644 --- a/demo/pwm.c +++ b/demo/pwm.c @@ -64,7 +64,7 @@ int main(int argc, char *argv[]) if(options.n_scan==2) { printf("%d\n",comedi_get_maxdata(device,options.subdevice,0)); - close(device); + comedi_close(device); exit(0); } -- 2.26.2