Fixed a bug with the ms58xx sensor initialization

This commit is contained in:
Karim Keddam 2015-11-17 17:21:46 -05:00
parent 2578994e74
commit 522d891759

View File

@ -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);