diff options
author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2018-10-21 16:14:09 -0700 |
---|---|---|
committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2018-10-21 16:14:09 -0700 |
commit | 1c287552b5a30999068d4aeb5ed83f1deed91210 (patch) | |
tree | 4ec978ea82d8c559a8d2688fd64b8b732849818b /motionMonitor/motionMonitor.c | |
parent | 7dbefb9120799d9530be69072175ad4a4ac16ed3 (diff) |
Factor out sample period
Diffstat (limited to 'motionMonitor/motionMonitor.c')
-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; |