summaryrefslogtreecommitdiff
path: root/common/mbed
diff options
context:
space:
mode:
Diffstat (limited to 'common/mbed')
-rw-r--r--common/mbed/timer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/mbed/timer.c b/common/mbed/timer.c
index a64a77239c..c357ceb786 100644
--- a/common/mbed/timer.c
+++ b/common/mbed/timer.c
@@ -11,6 +11,7 @@ void SysTick_Handler(void) {
void timer_init(void)
{
+ timer_count = 0;
SysTick_Config(SystemCoreClock / 1000); /* 1ms tick */
}