SparkFun_LSM9DS1_Arduino_Library icon indicating copy to clipboard operation
SparkFun_LSM9DS1_Arduino_Library copied to clipboard

FIFO random issue

Open u0078867 opened this issue 6 years ago • 0 comments

Did anyone experience random infinite loop while calibrating?

while (samples < 0x1F)
{
	samples = (xgReadByte(FIFO_SRC) & 0x3F); // Read number of stored samples
}

When this happens the first time (randomly and seldom), the only solution is to disconnect Vcc...

I think it is safe to put a timeout condition to exit the loop.

What do you think?

u0078867 avatar Jan 28 '20 11:01 u0078867