Browse Source
Merge pull request #529 from marcelverdult/patch-1
Fixed Barometric Pressure Reading for BMP280
pull/538/head
ripplebiz
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
src/helpers/sensors/EnvironmentSensorManager.cpp
|
|
|
@ -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 |
|
|
|
|