diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-17 20:21:31 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-17 20:21:31 +0300 |
| commit | 97150bf5a7f5844d9da47523e3136ce87c305ba0 (patch) | |
| tree | cce125b1cd9d5e3214f2465d595e0d96ba690e3d /Software/Embedded_SW/Embedded/Modules/Thread/Thread_Winder.c | |
| parent | 0f5d23b3a4d38e5a68436acf3a96822d59249f46 (diff) | |
| parent | efa84762d3e271e489eb4aaa530b6271942adffe (diff) | |
| download | Tango-97150bf5a7f5844d9da47523e3136ce87c305ba0.tar.gz Tango-97150bf5a7f5844d9da47523e3136ce87c305ba0.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Thread/Thread_Winder.c')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Modules/Thread/Thread_Winder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_Winder.c b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_Winder.c index e40be86a0..a8ca46574 100644 --- a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_Winder.c +++ b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_Winder.c @@ -166,13 +166,13 @@ uint32_t CalculateNumberOfSteps (uint32_t Counter, bool direction) if (Counter) { - if (Counter%InternalWinderCfg.spoolbackingrate == 0) + if (Counter%InternalWinderCfg.spoolbackingrate == 1) { NumberOfSteps -= (Counter/InternalWinderCfg.spoolbackingrate); REPORT_MSG(ScrewNumberOfSteps, "Head Backing"); ScrewNumberOfSteps--; } - if ((Counter%InternalWinderCfg.SpoolBottomBackingRate == 0)||(Counter%InternalWinderCfg.SpoolBottomBackingRate == 0)) + if ((Counter%InternalWinderCfg.SpoolBottomBackingRate == 0)||(Counter%InternalWinderCfg.SpoolBottomBackingRate == 1)) { if (direction != MotorsCfg[HARDWARE_MOTOR_TYPE__MOTO_SCREW].directionthreadwize) { |
