diff options
Diffstat (limited to 'motionMonitor/motionMonitor.c')
-rw-r--r-- | motionMonitor/motionMonitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/motionMonitor/motionMonitor.c b/motionMonitor/motionMonitor.c index 4ac6045..2622ea6 100644 --- a/motionMonitor/motionMonitor.c +++ b/motionMonitor/motionMonitor.c @@ -102,7 +102,7 @@ le_result_t brnkl_motion_getSuddenImpact(double* xAcc, pthread_mutex_lock(&impactMutex); // check - if (totalImpacts < *xSize || totalImpacts < *ySize || totalImpacts < *zSize) + if (totalImpacts > *xSize || totalImpacts > *ySize || totalImpacts > *zSize) return LE_OUT_OF_RANGE; for (int i = 0; i < totalImpacts; i++) { |