mirror of https://github.com/ArduPilot/ardupilot
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:
parent
5bbde92254
commit
78deddabda
|
@ -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++) {
|
||||||
|
|
Loading…
Reference in New Issue