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:
parent
77e2628600
commit
68e11852cf
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue