Closed ramok closed 4 years ago
Hi Ramok,
I think the issue in this commit is changing the i and n variables to unsigned int, I'm going to revert this change and test it again in the suggested condition (without any IIO sensors detected)
Shortly I'll update it on GitHub
Thank you and Best Regards
If there is no /sys/bus/iio/devices/, there is a problem:
This chunk need to be revert: https://github.com/STMicroelectronics/STMems_Android_Sensor_HAL_IIO/commit/8abda16ebb959341999278420bcb2efba5ed63ca#diff-baf53f11b0a71c17833b6ca4bafa2e46
device_iio_utils::get_devices_name()
return -2 to unsignediio_devices_num
. Which cannot be checked for -2