Browse Source

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.
master
Vinicius Juvinski 8 years ago committed by Francisco Ferreira
parent
commit
78deddabda
  1. 1
      libraries/AP_Airspeed/AP_Airspeed_MS4525.cpp

1
libraries/AP_Airspeed/AP_Airspeed_MS4525.cpp

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

Loading…
Cancel
Save