diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/evtimer.c | 4 |
1 files changed, 2 insertions, 2 deletions
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();
|