open that stupid hidraw device once and for all!!!

This commit is contained in:
Denis 2023-12-08 22:40:46 +01:00
parent 547265b259
commit 3eba3bcd58
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03
3 changed files with 4 additions and 6 deletions

View file

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