[HUST CSE][src][timer.c]修复 iar 中的类型转换报错

This commit is contained in:
n0vic3 2023-04-14 07:56:33 +08:00 committed by GitHub
parent ced40f33c5
commit dfe0c6b090
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
*(void **)arg = (void *)timer->timeout_func;
break;
case RT_TIMER_CTRL_SET_FUNC: