summaryrefslogtreecommitdiff
path: root/src/timer.c
diff options
context:
space:
mode:
authorchenchaoqun <[email protected]>2020-07-27 11:49:52 +0800
committerchenchaoqun <[email protected]>2020-07-27 11:50:48 +0800
commit55cfefd90a58e7e0d33e13714f21fb75a9718010 (patch)
tree41d578e7d91d7db3137d494119068c38d2df01f9 /src/timer.c
parente6b72153b440ae6eb9cf98bdc44c29903042373f (diff)
[add] switch default clause
Diffstat (limited to 'src/timer.c')
-rw-r--r--src/timer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/timer.c b/src/timer.c
index 28a5a9e494..4d12c7ec78 100644
--- a/src/timer.c
+++ b/src/timer.c
@@ -500,7 +500,10 @@ rt_err_t rt_timer_control(rt_timer_t timer, int cmd, void *arg)
/*timer is stop*/
*(rt_tick_t *)arg = RT_TIMER_FLAG_DEACTIVATED;
}
- break;
+ break;
+
+ default:
+ break;
}
return RT_EOK;