Merge pull request #1197 from agessaman/LPS22HB-fix
fix output from LPS22HB sensor: convert barometric pressure from kPa to hPa
This commit is contained in:
@@ -399,7 +399,7 @@ bool EnvironmentSensorManager::querySensors(uint8_t requester_permissions, Cayen
|
|||||||
#if ENV_INCLUDE_LPS22HB
|
#if ENV_INCLUDE_LPS22HB
|
||||||
if (LPS22HB_initialized) {
|
if (LPS22HB_initialized) {
|
||||||
telemetry.addTemperature(TELEM_CHANNEL_SELF, BARO.readTemperature());
|
telemetry.addTemperature(TELEM_CHANNEL_SELF, BARO.readTemperature());
|
||||||
telemetry.addBarometricPressure(TELEM_CHANNEL_SELF, BARO.readPressure());
|
telemetry.addBarometricPressure(TELEM_CHANNEL_SELF, BARO.readPressure() * 10); // convert kPa to hPa
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user