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:
- 27:69d5670fe347
- Parent:
- 23:f45027ac625c
--- a/WeatherStation.cpp Wed May 29 08:34:30 2019 +0000
+++ b/WeatherStation.cpp Mon Jun 03 16:21:16 2019 +0000
@@ -97,7 +97,8 @@
m_environmentalService.updateTemperatureLevel ((int16_t)(temp*100));
m_environmentalService.updateHumidityLevel ((uint16_t)(humidity*100));
// get pressure trend for the environmental service
- uint8_t pressureTrend = m_history.getPressureTrend(pressure);
- m_environmentalService.updatePressureLevel(pressureTrend);
+ uint8_t pressureTrend = m_history.getPressureTrend((uint32_t)(pressure*10));
+ m_logger.log("Trend: %d\r\n", pressureTrend);
+ m_environmentalService.updatePressureTrend (pressureTrend);
m_batteryService.updateBatteryLevel(battery);
}
\ No newline at end of file