diff options
-rw-r--r-- | motionMonitor/motionMonitor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/motionMonitor/motionMonitor.c b/motionMonitor/motionMonitor.c index 59f26e6..f2027f9 100644 --- a/motionMonitor/motionMonitor.c +++ b/motionMonitor/motionMonitor.c @@ -4,6 +4,7 @@ #include <pthread.h> #define N_CHANGE_BLOCKS 200 +#define SAMPLE_PERIOD_MS 100 void *impactMonitor(void *); @@ -145,7 +146,7 @@ void *impactMonitor(void * ptr){ if(r != LE_OK) LE_ERROR("Impact Not Recorded"); - usleep(100*1000); + usleep(SAMPLE_PERIOD_MS*1000); } return ptr; |