summaryrefslogtreecommitdiff
path: root/motionMonitor
diff options
context:
space:
mode:
Diffstat (limited to 'motionMonitor')
-rw-r--r--motionMonitor/motionMonitor.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/motionMonitor/motionMonitor.c b/motionMonitor/motionMonitor.c
index 3ded30e..89786f8 100644
--- a/motionMonitor/motionMonitor.c
+++ b/motionMonitor/motionMonitor.c
@@ -94,7 +94,9 @@ le_result_t brnkl_motion_getSuddenImpact(double* xAcc,
double* yAcc,
size_t* ySize,
double* zAcc,
- size_t* zSize) {
+ size_t* zSize,
+ uint64_t* timestampssOut,
+ size_t* timeSize) {
if (!totalImpacts)
LE_INFO("No Sudden Impacts to Report");
else {
@@ -108,6 +110,7 @@ le_result_t brnkl_motion_getSuddenImpact(double* xAcc,
xAcc[i] = xAccImpact[i];
yAcc[i] = yAccImpact[i];
zAcc[i] = zAccImpact[i];
+ timestampssOut[i] = timestamps[i];
}
*xSize = *ySize = *zSize = totalImpacts;