diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2020-07-27 15:39:26 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2020-07-27 15:39:26 +0300 |
| commit | 5e59906df60d82248da4ae47677ed59d56fb605a (patch) | |
| tree | 8585548197bfada234b7ded17028aba9563c32de /Software/Embedded_SW/Embedded/Modules/Control | |
| parent | 3210901f7aa313cfe1eb2c303b539d6e7d1f2324 (diff) | |
| parent | c947fa4b4999b1368ee500c3349ef6e8fce3f0b5 (diff) | |
| download | Tango-5e59906df60d82248da4ae47677ed59d56fb605a.tar.gz Tango-5e59906df60d82248da4ae47677ed59d56fb605a.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Control')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Modules/Control/control.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Control/control.c b/Software/Embedded_SW/Embedded/Modules/Control/control.c index 26fba0194..14275533e 100644 --- a/Software/Embedded_SW/Embedded/Modules/Control/control.c +++ b/Software/Embedded_SW/Embedded/Modules/Control/control.c @@ -597,6 +597,9 @@ uint32_t ControlLowLoop(uint32_t tick) continue; if (ControlArray[ControlLowDevice_i].ControlTiming == eOneMillisecond) continue; + if (ControlArray[ControlLowDevice_i].StartTick == tick) + continue; + if (((tick - ControlArray[ControlLowDevice_i].StartTick)%ControlArray[ControlLowDevice_i].ControlTiming)<=skipped_ticks) // run the control on exact intervals { ControlBacklog[backlogindex]=ControlLowDevice_i; |
