I am using i2c module from bonescript, on PocketBeagle.
I am seeing sometimes readByte(i2cReadByte in BoneScript) causes Segmentation Fault in its native code.
I printf debugged and by following change the problem seems to be gone.
The issue happens when you have read error (-1 is returned from i2c_smbus_read_byte()).
Note sure this is bonescript issue or i2c module issue.
I am using i2c module from bonescript, on PocketBeagle. I am seeing sometimes readByte(i2cReadByte in BoneScript) causes Segmentation Fault in its native code.
I printf debugged and by following change the problem seems to be gone. The issue happens when you have read error (-1 is returned from i2c_smbus_read_byte()).
Note sure this is bonescript issue or i2c module issue.