aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Control/control.c
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2020-02-19 20:37:44 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2020-02-19 20:37:44 +0200
commitd6e2772dd98e6880de14ea12be0ef53bae24f763 (patch)
tree4d3385fc155c5bc5cb080da5318dc7dfeb4d0d75 /Software/Embedded_SW/Embedded/Modules/Control/control.c
parentb41a0cfe17a485abd077b7f059bb9620cf6e474c (diff)
parent7577588797cea9bd827df9170180370b739a5a8d (diff)
downloadTango-d6e2772dd98e6880de14ea12be0ef53bae24f763.tar.gz
Tango-d6e2772dd98e6880de14ea12be0ef53bae24f763.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Control/control.c')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Control/control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Control/control.c b/Software/Embedded_SW/Embedded/Modules/Control/control.c
index ba11ff58c..bea68e314 100644
--- a/Software/Embedded_SW/Embedded/Modules/Control/control.c
+++ b/Software/Embedded_SW/Embedded/Modules/Control/control.c
@@ -585,7 +585,7 @@ uint32_t ControlLowLoop(uint32_t tick)
{
if (ControlArray[ControlLowDevice_i].ControlActive)
{
- if (tick == ControlArray[ControlLowDevice_i].StartTick)
+ if (tick - ControlArray[ControlLowDevice_i].StartTick<=skipped_ticks)
continue;
if (ControlArray[ControlLowDevice_i].ControlTiming == eOneMillisecond)
continue;