You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a faulty onboard BMP280 barometer, and I added an external BMP280 to the i2c bus.
These BMP280 barometers allow to change the default 0x76 address to 0x77, applying VCC to SDO pin.
In lack of configurable baro_i2c_address (It would be nice to port from Betaflight), I tried to change the default address in the code, but found that it is ignored.
I had to add the following line to barometer_bmp280.c: (last line)
This issue / pull request has been automatically marked as stale because it has not had any activity in 60 days. The resources of the INAV team are limited, and so we are asking for your help.
This issue / pull request will be closed if no further activity occurs within two weeks.
I have a faulty onboard BMP280 barometer, and I added an external BMP280 to the i2c bus.
These BMP280 barometers allow to change the default 0x76 address to 0x77, applying VCC to SDO pin.
In lack of configurable baro_i2c_address (It would be nice to port from Betaflight), I tried to change the default address in the code, but found that it is ignored.
I had to add the following line to barometer_bmp280.c: (last line)
`
bool bmp280Detect(baroDev_t *baro)
{
baro->busDev = busDeviceInit(BUSTYPE_ANY, DEVHW_BMP280, 0, OWNER_BARO);
if (baro->busDev == NULL) {
return false;
}
`
This way I can use the external one without having to desolder the faulty one.
If there is interest I could try to make it configurable.
The text was updated successfully, but these errors were encountered: