Adafruit_BNO08x
Adafruit_BNO08x copied to clipboard
Update Adafruit_BNO08x.cpp
Check the length field of the header for invalid packet.
In the original implementation, the I2C read function check the length field of the initial 4-byte header. The same check should apply to subsequent packets.