Increase MLX frame readout retry.
@@ -64,7 +64,7 @@ int MLX90640_GetFrameData(uint8_t slaveAddr, uint16_t *frameData)
dataReady = statusRegister & 0x0008;
}
- while(dataReady != 0 && cnt < 5)
+ while(dataReady != 0 && cnt < 32)
{
error = MLX90640_I2CWrite(slaveAddr, 0x8000, 0x0030);
if(error == -1)
@@ -87,7 +87,7 @@ int MLX90640_GetFrameData(uint8_t slaveAddr, uint16_t *frameData)
cnt = cnt + 1;
}
- if(cnt > 4)
+ if(cnt > 31)
{
return -8;
}
