aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/include/chvt.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/rt/include/chvt.h')
-rw-r--r--os/rt/include/chvt.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/os/rt/include/chvt.h b/os/rt/include/chvt.h
index 0e08b156b..bcf1dbcac 100644
--- a/os/rt/include/chvt.h
+++ b/os/rt/include/chvt.h
@@ -344,8 +344,9 @@ static inline bool chVTGetTimersStateI(systime_t *timep) {
chDbgCheckClassI();
- if (&ch.vtlist == (virtual_timers_list_t *)ch.vtlist.vt_next)
+ if (&ch.vtlist == (virtual_timers_list_t *)ch.vtlist.vt_next) {
return false;
+ }
if (timep != NULL) {
#if CH_CFG_ST_TIMEDELTA == 0