|
|
| version 1.18.2.1, 2013/08/26 07:30:07 | version 1.18.2.2, 2013/08/26 07:40:06 |
|---|---|
| Line 158 _sched_rtcWrapper(sched_task_t *t) | Line 158 _sched_rtcWrapper(sched_task_t *t) |
| { | { |
| void *ret = NULL; | void *ret = NULL; |
| sched_task_func_t func; | sched_task_func_t func; |
| sched_task_t *task; | |
| if (!t || !TASK_ROOT(t)) | if (!t || !TASK_ROOT(t) || !TASK_DATA(t)) |
| return NULL; | return NULL; |
| else | else { |
| func = TASK_FUNC(t); | task = (sched_task_t*) TASK_DATA(t); |
| func = TASK_FUNC(task); | |
| } | |
| ret = func(t); | ret = func(task); |
| timer_delete((timer_t) TASK_DATLEN(t)); | timer_delete((timer_t) TASK_DATLEN(t)); |
| return ret; | return ret; |
| } | } |