1
0
Fork 0

only use time producer fields when enabled

This commit is contained in:
Koen Dergent 2021-02-16 10:01:16 +01:00
parent d00ddf5a59
commit a3606672d1

View file

@ -181,7 +181,9 @@ static inline void CO_TIME_set(CO_TIME_t *TIME,
TIME->residual_us = 0;
TIME->ms = ms;
TIME->days = days;
#if ((CO_CONFIG_TIME) & CO_CONFIG_TIME_PRODUCER)
TIME->producerTimer_ms = TIME->producerInterval_ms =producerInterval_ms;
#endif
}
}