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: EnvironmentalService.cpp
- Revision:
- 20:dac20b06d457
- Parent:
- 19:e056f98192f2
- Child:
- 22:79c64511d34d
diff -r e056f98192f2 -r dac20b06d457 EnvironmentalService.cpp --- a/EnvironmentalService.cpp Wed Apr 17 12:58:36 2019 +0000 +++ b/EnvironmentalService.cpp Fri Apr 19 16:16:44 2019 +0000 @@ -40,6 +40,7 @@ m_temperature = newTemperature; m_humidity = newHumidity; + // Setting the actual barmeter state using the average if (newPressure == newPressureTrend) m_pressureTrend = STEADY; if (newPressure > newPressureTrend) m_pressureTrend = RISING_CONTINUOUSLY; if (newPressure < newPressureTrend) m_pressureTrend = FALLING_CONTINUOUSLY;