open that stupid hidraw device once and for all!!!
This commit is contained in:
parent
547265b259
commit
3eba3bcd58
3 changed files with 4 additions and 6 deletions
|
|
@ -384,8 +384,8 @@ int dev_iio_open(
|
|||
//printf("Testing for device %s\n", path);
|
||||
|
||||
// try to open the device, if it cannot be opened to go the next
|
||||
int fd = dev_iio_create(path, out_dev);
|
||||
if (fd != 0) {
|
||||
const int iio_creation_res = dev_iio_create(path, out_dev);
|
||||
if (iio_creation_res != 0) {
|
||||
//fprintf(stderr, "Cannot open %s, device skipped.\n", path);
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue