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:
- 17:76787f5a334f
- Parent:
- 16:eed9a9ba319c
- Child:
- 19:e056f98192f2
diff -r eed9a9ba319c -r 76787f5a334f WeatherStation.cpp --- a/WeatherStation.cpp Tue Apr 16 08:25:25 2019 +0000 +++ b/WeatherStation.cpp Tue Apr 16 09:13:43 2019 +0000 @@ -90,7 +90,7 @@ float time = (uint32_t)seconds; // Saving the measured values - m_history.addMeasurement(pressure, temp, humidity, time); + m_history.addMeasurement(((uint32_t)(pressure*10)), ((int16_t)(temp*100)), ((uint16_t)(humidity*100)), ((uint32_t)time)); // Send the measured values to GATT m_environmentalService.updateEnvironmentalService(((uint32_t)(pressure*10)), ((int16_t)(temp*100)), ((uint16_t)(humidity*100)), ((uint8_t)(m_history.getPressureTrend())));