From: Ian Abbott Date: Mon, 14 May 2012 13:51:06 +0000 (+0100) Subject: demo/pwm: Bug fix - should have called comedi_close() X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=68e11852cf89d7e5a7ceabb1088778aa6d81597f;p=comedilib.git 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. --- 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); }