only use time producer fields when enabled
This commit is contained in:
parent
d00ddf5a59
commit
a3606672d1
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue