AP_Airspeed: MS4525: Add support to I2C Bus 2

BBBMini use I2C Bus number 2 and MS4525 just use up to bus 1, so I
addedd this bus 2 to address struct.
This commit is contained in:
Vinicius Juvinski 2017-08-01 22:50:19 -03:00 committed by Francisco Ferreira
parent 5bbde92254
commit 78deddabda
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ bool AP_Airspeed_MS4525::init()
} addresses[] = { } addresses[] = {
{ 1, MS4525D0_I2C_ADDR }, { 1, MS4525D0_I2C_ADDR },
{ 0, MS4525D0_I2C_ADDR }, { 0, MS4525D0_I2C_ADDR },
{ 2, MS4525D0_I2C_ADDR },
}; };
bool found = false; bool found = false;
for (uint8_t i=0; i<ARRAY_SIZE(addresses); i++) { for (uint8_t i=0; i<ARRAY_SIZE(addresses); i++) {