X-Git-Url: https://rtime.felk.cvut.cz/gitweb/CanFestival-3.git/blobdiff_plain/28318885b441988d56fbbb4ff3f9bf7c6e3a2ae9..0866694bf90857f74fbdf19e360df612fc63bb91:/drivers/timers_rtai/timers_rtai.c 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); }