diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2020-07-23 18:54:20 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2020-07-23 18:54:20 +0300 |
| commit | cf49f9b7af8cb4ad0376157d27ef208eca6d1304 (patch) | |
| tree | b99059abdc696a31cb56ef227d29e4482e23cf8d /Software/Embedded_SW/Embedded/Modules/Control | |
| parent | 93bf6344f8cc37a662c19db81c4f341e5b9ed0f0 (diff) | |
| download | Tango-cf49f9b7af8cb4ad0376157d27ef208eca6d1304.tar.gz Tango-cf49f9b7af8cb4ad0376157d27ef208eca6d1304.zip | |
some small changes, mostly in drier loading
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; |
