Fix time conversion from ms to ticks.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 11 Jan 2012 18:14:40 +0000 (18:14 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 11 Jan 2012 18:14:40 +0000 (18:14 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5255 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/kern/rtask.c

index 4ccc6b18d2bd66039ea299eb91647693b551f8fa..0aaaf47f0cfc060989dee79f0bfa36e25fd4e4d7 100644 (file)
@@ -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);
        }