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:
ripplebiz
2025-12-11 10:14:10 +11:00
committed by GitHub

View File

@@ -399,7 +399,7 @@ bool EnvironmentSensorManager::querySensors(uint8_t requester_permissions, Cayen
#if ENV_INCLUDE_LPS22HB
if (LPS22HB_initialized) {
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