提交 15b3271d 编写于 作者: B bernard.xiong@gmail.com

Fixed timer control issue.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2323 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 c77e211d
......@@ -352,11 +352,11 @@ rt_err_t rt_timer_control(rt_timer_t timer, rt_uint8_t cmd, void *arg)
break;
case RT_TIMER_CTRL_SET_ONESHOT:
timer->parent.flag &= ~(1 << RT_TIMER_FLAG_PERIODIC);
timer->parent.flag &= ~RT_TIMER_FLAG_PERIODIC;
break;
case RT_TIMER_CTRL_SET_PERIODIC:
timer->parent.flag |= (1 << RT_TIMER_FLAG_PERIODIC);
timer->parent.flag |= RT_TIMER_FLAG_PERIODIC;
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册