Closed lblim closed 8 years ago
@yongli3 can you look into this? otherwise let @edersondisouza know
@edersondisouza I submitted a PR for this issue. For such "no-buffer" devices(BH1750 light sensor), If enable buffer reading in fbp files(buffer_size > -1), Soletta will output warning message and quit, and does not call the buffer disable API since there is no buffer/enable file
@lblim This issue should've been addressed, can you confirm it, please?
@fulong82 will confirm this fix once the build issue is resolved
I have verified the latest code and no more warning message appear if the iio sensor does not have buffer expose.
@fulong82 Thanks, closing issue then.
Issue Description
IIO node by default assume the IIO driver has buffer implemented, but not all IIO drivers have buffer implementation, therefore the lookup for buffer entry in sysfs may return warning at user space and also need to have buffer_size entry as -1 in the JSON file.
Steps to reproduce
Board information
Host OS and architecture: Ubuntu 14.04.4 LTS
Target OS and platform: Linux 4.1 APL-i