diff options
| author | armink <[email protected]> | 2021-11-25 15:31:43 +0800 |
|---|---|---|
| committer | armink <[email protected]> | 2021-11-25 15:31:43 +0800 |
| commit | 75063a1b5e519d27485dac77590d46f626354ea2 (patch) | |
| tree | f3996057691df15e5e9b1ce928b3df3e94bd66c3 | |
| parent | 31714562cc2ec3679539885b0db12596434de335 (diff) | |
[timer] update the RT_TIMER_CTRL_GET_STATE code in rt_timer_control
| -rw-r--r-- | src/timer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timer.c b/src/timer.c index 25ba175306..846c33263b 100644 --- a/src/timer.c +++ b/src/timer.c @@ -560,12 +560,12 @@ rt_err_t rt_timer_control(rt_timer_t timer, int cmd, void *arg) if(timer->parent.flag & RT_TIMER_FLAG_ACTIVATED) { /*timer is start and run*/ - *(rt_tick_t *)arg = RT_TIMER_FLAG_ACTIVATED; + *(rt_uint32_t *)arg = RT_TIMER_FLAG_ACTIVATED; } else { /*timer is stop*/ - *(rt_tick_t *)arg = RT_TIMER_FLAG_DEACTIVATED; + *(rt_uint32_t *)arg = RT_TIMER_FLAG_DEACTIVATED; } break; |
