From 6582dda2499ac45ff14e68cecc4cc6b78ffbbded Mon Sep 17 00:00:00 2001 From: asterix Date: Wed, 11 Jan 2012 18:14:40 +0000 Subject: [PATCH] Fix time conversion from ms to ticks. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5255 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/kern/rtask.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bertos/kern/rtask.c b/bertos/kern/rtask.c index 4ccc6b18..0aaaf47f 100644 --- a/bertos/kern/rtask.c +++ b/bertos/kern/rtask.c @@ -145,7 +145,7 @@ RTask *rtask_add(rtask_cb_t cb, mtime_t delay, void *cb_data) rt->callback = cb; rt->user_data = cb_data; timer_setSoftint(&rt->t, rtask_trampoline, rt); - timer_setDelay(&rt->t, delay); + timer_setDelay(&rt->t, ms_to_ticks(delay)); RTASK_ATOMIC(synctimer_add(&rt->t, &rt_list)); sig_send(process, NEW_TASK); } -- 2.25.1