Fixed Barometric Pressure Reading for BMP280

Measurement has to be divided by 100 same as BME280
This commit is contained in:
marcelverdult
2025-07-16 13:50:23 +02:00
committed by GitHub
parent 3358783039
commit 58cffa8f76

View File

@@ -162,7 +162,7 @@ bool EnvironmentSensorManager::querySensors(uint8_t requester_permissions, Cayen
#if ENV_INCLUDE_BMP280
if (BMP280_initialized) {
telemetry.addTemperature(TELEM_CHANNEL_SELF, BMP280.readTemperature());
telemetry.addBarometricPressure(TELEM_CHANNEL_SELF, BMP280.readPressure());
telemetry.addBarometricPressure(TELEM_CHANNEL_SELF, BMP280.readPressure()/100);
telemetry.addAltitude(TELEM_CHANNEL_SELF, BME280.readAltitude(TELEM_BME280_SEALEVELPRESSURE_HPA));
}
#endif
@@ -332,4 +332,4 @@ void EnvironmentSensorManager::loop() {
next_gps_update = millis() + 1000;
}
}
#endif
#endif