mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
include delay(20)
This commit is contained in:
parent
c73af88507
commit
14a95a3f18
1 changed files with 1 additions and 0 deletions
|
@ -154,6 +154,7 @@ bool bmp085Detect(const bmp085Config_t *config, baro_t *baro)
|
|||
if (bmp085InitDone)
|
||||
return true;
|
||||
|
||||
delay(20); // datasheet says 10ms, we'll be careful and do 20.
|
||||
ack = i2cRead(BMP085_I2C_ADDR, BMP085_CHIP_ID__REG, 1, &data); /* read Chip Id */
|
||||
if(!ack)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue