diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-13 21:44:24 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-13 21:44:24 +0000 |
commit | 7cbeae30b426e0912d1814c76e6223fb0842a9fc (patch) | |
tree | a18e5e084078df356178ec94987ed828ec669f22 /nuttx/sched/work_thread.c | |
parent | ea4461bfe4f667a624055c6a061aaef49e33cace (diff) | |
download | px4-nuttx-7cbeae30b426e0912d1814c76e6223fb0842a9fc.tar.gz px4-nuttx-7cbeae30b426e0912d1814c76e6223fb0842a9fc.tar.bz2 px4-nuttx-7cbeae30b426e0912d1814c76e6223fb0842a9fc.zip |
Macro clock_systimer replaces direct access to g_system_timer variable
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3500 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/work_thread.c')
-rwxr-xr-x | nuttx/sched/work_thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/sched/work_thread.c b/nuttx/sched/work_thread.c index 49542b532..a0e0d78e9 100755 --- a/nuttx/sched/work_thread.c +++ b/nuttx/sched/work_thread.c @@ -152,7 +152,7 @@ int work_thread(int argc, char *argv[]) * zero. Therefore a delay of zero will always execute immediately. */ - elapsed = g_system_timer - work->qtime; + elapsed = clock_systimer() - work->qtime; if (elapsed >= work->delay) { /* Remove the ready-to-execute work from the list */ |