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: MeasurementHistory.h
- Revision:
- 16:eed9a9ba319c
- Parent:
- 12:856286ad4cdc
- Child:
- 17:76787f5a334f
--- a/MeasurementHistory.h Tue Apr 16 07:22:47 2019 +0000 +++ b/MeasurementHistory.h Tue Apr 16 08:25:25 2019 +0000 @@ -1,14 +1,17 @@ #pragma once #include <stdint.h> +#include "Logger.h" class MeasurementHistory { public: // constructor - MeasurementHistory(); + MeasurementHistory(Logger logger); // Add some new values to the history void addMeasurement(float temp, float pressure, float humidity, uint32_t time); + + uint32_t getPressureTrend(); private: @@ -28,4 +31,6 @@ Data m_measures[ARRAY_SIZE]; int m_index; + + Logger m_logger; };