summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaranjeiro2008-11-20 10:35:59 +0000
committerlaranjeiro2008-11-20 10:35:59 +0000
commitedcc6bb71c45b60b2b3e9e7c8e011169ddc99afb (patch)
tree7112d9521aa75d76d1faad6abb552e9541ab0137
parentb1579588fcdd3ef76ac5377d7454cc3b664773b0 (diff)
hal/timer: Fix the instance process function to compare the instance date with the phy_date and process the instance if it is equal.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@3497 017c9cb6-072f-447c-8318-d5b54f68fe89
-rw-r--r--cesar/hal/timer/src/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cesar/hal/timer/src/timer.c b/cesar/hal/timer/src/timer.c
index ea8e5b0f6c..36b5983766 100644
--- a/cesar/hal/timer/src/timer.c
+++ b/cesar/hal/timer/src/timer.c
@@ -236,7 +236,7 @@ hal_timer_instance_process (hal_timer_t *ctx)
// unlock the mutex
cyg_mutex_unlock (&ctx->heap_mutex);
- if (less_mod2p32(instance->date, phy_date (ctx->phy)))
+ if (lesseq_mod2p32(instance->date, phy_date (ctx->phy)))
{
// remove the instance from the heap.
cyg_mutex_lock (&ctx->heap_mutex);