Browse Source

Sensor improvement: try BME280 addresses

The meshcore-default 0x76 address is actually not the default on the chip. Try both addresses.
pull/2709/head
Ted Timmons 3 weeks ago
parent
commit
e9a8d9a160
Failed to extract signature
  1. 3
      src/helpers/sensors/EnvironmentSensorManager.cpp

3
src/helpers/sensors/EnvironmentSensorManager.cpp

@ -563,6 +563,9 @@ static const SensorDef SENSOR_TABLE[] = {
#endif
#if ENV_INCLUDE_BME280
{ TELEM_BME280_ADDRESS, "BME280", init_bme280, query_bme280 },
#if TELEM_BME280_ADDRESS != 0x77
{ 0x77, "BME280@77", init_bme280, query_bme280 },
#endif
#endif
#if ENV_INCLUDE_BMP280
{ TELEM_BMP280_ADDRESS, "BMP280", init_bmp280, query_bmp280 },

Loading…
Cancel
Save