Skip to content

Commit 6a6221f

Browse files
authored
Merge pull request #529 from marcelverdult/patch-1
Fixed Barometric Pressure Reading for BMP280
2 parents 46fa3f2 + 58cffa8 commit 6a6221f

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)