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.
This commit is contained in:
Ian Abbott 2012-05-14 14:51:06 +01:00
parent 77e2628600
commit 68e11852cf

View file

@ -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);
}