demo project
Dependencies: AX-12A Dynamixel mbed iothub_client EthernetInterface NTPClient ConfigFile SDFileSystem iothub_amqp_transport mbed-rtos proton-c-mbed wolfSSL
Diff: MeasureBuf.cpp
- Revision:
- 7:6723f6887d00
- Parent:
- 4:36a4eceb1b7f
- Child:
- 13:ffeff9b5e513
--- a/MeasureBuf.cpp Mon Dec 28 17:29:12 2015 +0000 +++ b/MeasureBuf.cpp Tue Dec 29 23:31:28 2015 +0000 @@ -1,5 +1,4 @@ #include "mbed.h" -#include "rtos.h" #include "MeasureBuf.h" @@ -7,9 +6,11 @@ SafeCircBuf<MeasureGroup, MeasureBufSize, uint32_t> MeasureBuf; -void MeasureGroup::SetMeasure(NodeMeasure mId, vector<float>& vals) +void MeasureGroup::SetMeasure(NodeMeasure mId, time_t created, vector<float>& vals) { MeasId = mId; + Created = created; + NumVals = MAX_PARTS < vals.size() ? MAX_PARTS : vals.size(); for (int ix = 0; ix < NumVals; ix++)