From 15b3271d5d3908d1c7b46dd1a9f3f64a65b5c261 Mon Sep 17 00:00:00 2001 From: "bernard.xiong@gmail.com" Date: Mon, 8 Oct 2012 06:07:52 +0000 Subject: [PATCH] Fixed timer control issue. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2323 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- src/timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/timer.c b/src/timer.c index 3a6337ab1..29bfecd3d 100644 --- a/src/timer.c +++ b/src/timer.c @@ -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; }