Skip to content

Commit 58cffa8

Browse files
Fixed Barometric Pressure Reading for BMP280
Measurement has to be divided by 100 same as BME280
1 parent 3358783 commit 58cffa8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helpers/sensors/EnvironmentSensorManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ bool EnvironmentSensorManager::querySensors(uint8_t requester_permissions, Cayen
162162
#if ENV_INCLUDE_BMP280
163163
if (BMP280_initialized) {
164164
telemetry.addTemperature(TELEM_CHANNEL_SELF, BMP280.readTemperature());
165-
telemetry.addBarometricPressure(TELEM_CHANNEL_SELF, BMP280.readPressure());
165+
telemetry.addBarometricPressure(TELEM_CHANNEL_SELF, BMP280.readPressure()/100);
166166
telemetry.addAltitude(TELEM_CHANNEL_SELF, BME280.readAltitude(TELEM_BME280_SEALEVELPRESSURE_HPA));
167167
}
168168
#endif
@@ -332,4 +332,4 @@ void EnvironmentSensorManager::loop() {
332332
next_gps_update = millis() + 1000;
333333
}
334334
}
335-
#endif
335+
#endif

0 commit comments

Comments
 (0)