Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: WeatherStation.cpp
- Revision:
- 23:f45027ac625c
- Parent:
- 22:79c64511d34d
- Child:
- 27:69d5670fe347
--- a/WeatherStation.cpp Wed May 29 06:36:54 2019 +0000 +++ b/WeatherStation.cpp Wed May 29 06:50:47 2019 +0000 @@ -97,7 +97,7 @@ m_environmentalService.updateTemperatureLevel ((int16_t)(temp*100)); m_environmentalService.updateHumidityLevel ((uint16_t)(humidity*100)); // get pressure trend for the environmental service - uint32_t averagePressure = m_history.getPressureTrend(); - m_environmentalService.updatePressureLevel (averagePressure); + uint8_t pressureTrend = m_history.getPressureTrend(pressure); + m_environmentalService.updatePressureLevel(pressureTrend); m_batteryService.updateBatteryLevel(battery); } \ No newline at end of file