From 70c86d43ec79032c7172507fc12bf7d78d44a3de Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 15 Oct 2007 14:52:56 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@53 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/lib/evtimer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/evtimer.c') diff --git a/src/lib/evtimer.c b/src/lib/evtimer.c index 1ab384086..b273e1fd3 100644 --- a/src/lib/evtimer.c +++ b/src/lib/evtimer.c @@ -45,7 +45,7 @@ void evtStart(EvTimer *etp) { chSysLock(); - if (!etp->et_vt.vt_func) + if (!chVTIsArmedI(&etp->et_vt)) chVTSetI(&etp->et_vt, etp->et_interval, tmrcb, etp); chSysUnlock(); @@ -60,7 +60,7 @@ void evtStop(EvTimer *etp) { chSysLock(); - if (etp->et_vt.vt_func) + if (chVTIsArmedI(&etp->et_vt)) chVTResetI(&etp->et_vt); chSysUnlock(); -- cgit v1.2.3