X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=common%2Fmbed%2Ftimer.c;h=c357ceb7863c92c07fd94f86da54c7642e8d2e2f;hb=04fe78ee0a7fe9baed39f021799a3dbb24ebeb36;hp=a64a77239cd8073065bd904f1328706c91732bd1;hpb=867f115bee190515aa195dc3e58f1c381ea9695b;p=tmk_firmware.git diff --git a/common/mbed/timer.c b/common/mbed/timer.c index a64a772..c357ceb 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 */ }