aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Thread/Thread_init.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-09-23 14:50:38 +0300
committerShlomo Hecht <shlomo@twine-s.com>2019-09-23 14:50:38 +0300
commitb869bbeacf64595d2c716e1bf6257bb47ccf7221 (patch)
tree75682cd663f0de6db45375dc122aa316f799cd5c /Software/Embedded_SW/Embedded/Modules/Thread/Thread_init.c
parentbc9aa6ae0e64f4ddefcec06503b12e1daa4075d0 (diff)
parent4cac9d0fb02430f725b37430d9eab78a8a39afee (diff)
downloadTango-b869bbeacf64595d2c716e1bf6257bb47ccf7221.tar.gz
Tango-b869bbeacf64595d2c716e1bf6257bb47ccf7221.zip
merge conflict
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Thread/Thread_init.c')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Thread/Thread_init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_init.c b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_init.c
index 38c0f86f1..5d84bb5d0 100644
--- a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_init.c
+++ b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_init.c
@@ -69,13 +69,12 @@ uint32_t MotorsConfigMessage(HardwareConfiguration * HWrequest)
MotorsCfg[Motor_i].configword = request->configword;
if(MotorDriverResponse[Motor_i].DriverType == CombinrdMotDriver)
{
- MotorsCfg[Motor_i].directionthreadwize = !(request->directionthreadwize);//PowerSTEP01
+ MotorsCfg[Motor_i].directionthreadwize = request->directionthreadwize ^ 1;//PowerSTEP01
}
else
{
MotorsCfg[Motor_i].directionthreadwize = request->directionthreadwize;//L6470 + L6472
}
- MotorsCfg[Motor_i].directionthreadwize = request->directionthreadwize;
MotorsCfg[Motor_i].kvalhold = request->kvalhold;
MotorsCfg[Motor_i].kvalrun = request->kvalrun;
MotorsCfg[Motor_i].kvalacc = request->kvalacc;