libi2c
libi2c copied to clipboard
Segmentation fault when trying to write to sensor
When I try to write to my sensor i am getting a segmentation fault. I have narrowed it down to tmp_buf is being set to basically -inf after going through i2c_iaddr_convert. Do you have any idea as to why that may be happening?
Thanks in advance for any help :)
Has your problem been solved? I also encountered the same problem
You need to pay attention to the implementation of i2c_write, please do not set the page_size in the device to zero, otherwise the cause of copy error will occur