Fixed a bug with the ms58xx sensor initialization
This commit is contained in:
parent
2578994e74
commit
522d891759
@ -413,6 +413,8 @@ static int ms58xx_readprom(FAR struct ms58xx_dev_s *priv)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We have to wait before the prom is ready is be read
|
||||||
|
up_udelay(10000);
|
||||||
for (i = 0; i < len; i++)
|
for (i = 0; i < len; i++)
|
||||||
{
|
{
|
||||||
ret = ms58xx_readu16(priv, MS58XX_PROM_REG+i*2, prom+i);
|
ret = ms58xx_readu16(priv, MS58XX_PROM_REG+i*2, prom+i);
|
||||||
|
Loading…
Reference in New Issue
Block a user