[kernel][timer] 修复在IAR下数据类型报错 (#6804)
This commit is contained in:
parent
c38c6e2c83
commit
93a7cff44c
|
@ -614,7 +614,7 @@ rt_err_t rt_timer_control(rt_timer_t timer, int cmd, void *arg)
|
|||
*(rt_tick_t *)arg = timer->timeout_tick;
|
||||
break;
|
||||
case RT_TIMER_CTRL_GET_FUNC:
|
||||
*(void **)arg = timer->timeout_func;
|
||||
arg = (void *)timer->timeout_func;
|
||||
break;
|
||||
|
||||
case RT_TIMER_CTRL_SET_FUNC:
|
||||
|
|
Loading…
Reference in New Issue