From 0866694bf90857f74fbdf19e360df612fc63bb91 Mon Sep 17 00:00:00 2001 From: etisserant Date: Wed, 4 Jun 2008 08:53:41 +0000 Subject: [PATCH] Fixed minor typos in timers_rtai.c and timers_xeno.c --- drivers/timers_rtai/timers_rtai.c | 2 +- drivers/timers_xeno/timers_xeno.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/timers_rtai/timers_rtai.c b/drivers/timers_rtai/timers_rtai.c index c4e17b9..bf8f8cc 100755 --- a/drivers/timers_rtai/timers_rtai.c +++ b/drivers/timers_rtai/timers_rtai.c @@ -217,7 +217,7 @@ void WaitReceiveTaskEnd(TASK_HANDLE *ReceiveLoop_thread) void setTimer(TIMEVAL value) { rt_sem_wait(condition_mutex); - last_timeout_set = (value == TIMEVAL_MAX) ? TIMEVAL_MAX : value; + last_timeout_set = value; rt_sem_signal(condition_mutex); rt_cond_signal(timer_set); } diff --git a/drivers/timers_xeno/timers_xeno.c b/drivers/timers_xeno/timers_xeno.c index 4d7010b..e221403 100644 --- a/drivers/timers_xeno/timers_xeno.c +++ b/drivers/timers_xeno/timers_xeno.c @@ -238,7 +238,7 @@ void WaitReceiveTaskEnd(TASK_HANDLE *ReceiveLoop_task) void setTimer(TIMEVAL value) { rt_mutex_acquire(&condition_mutex, TM_INFINITE); - last_timeout_set = (value == TIMEVAL_MAX) ? TIMEVAL_MAX : value; + last_timeout_set = value; rt_mutex_release(&condition_mutex); rt_cond_signal(&timer_set); } -- 2.39.2