mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Increase MLX frame readout retry.
This commit is contained in:
parent
0b6dc728ba
commit
08520c5618
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user