aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2020-08-10 00:06:13 +0300
committerShlomo Hecht <shlomo@twine-s.com>2020-08-10 00:06:13 +0300
commitfd2e751df27157deff79c753ad00c4180be22703 (patch)
tree257d9af4cce3b27acd92541f48662ad718035aab /Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
parentf0f40f3e5614dc23b5463d9b2ce1581ab90f267f (diff)
downloadTango-fd2e751df27157deff79c753ad00c4180be22703.tar.gz
Tango-fd2e751df27157deff79c753ad00c4180be22703.zip
logs
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
index 9c29cf14d..64425256f 100644
--- a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
+++ b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
@@ -962,10 +962,20 @@ uint32_t ThreadPrepare_Tension (int DancerId, double tension)
MotorMoveWithCallback (HW_Motor_Id, direction, (movement*MotorsCfg[HW_Motor_Id].microstep), ThreadPrepare_TensionCallback,20000);
status |= MCU_E2PromProgram(address,request);
}
- usnprintf(Lenstr, 100, "ThreadPrepare_Tension Dancer %d Request: %d Current %d movement %d dir %d motor %d address %d",
- DancerId,request,current,movement,direction,HW_Motor_Id,address);
- ReportWithPackageFilter(ThreadFilter,Lenstr,__FILE__,address,current,RpWarning,request,0);
+ if (DancerId == HARDWARE_DANCER_TYPE__LeftDancer)
+ {
+ usnprintf(Lenstr, 100, "ThreadPrepare_Tension Dancer %d Request: %d Current %d movement %d dir %d motor %d address %d",
+ DancerId,request,current,movement,direction,HW_Motor_Id,address);
+ ReportWithPackageFilter(ThreadFilter,Lenstr,__FILE__,address,current,RpWarning,request,0);
+
+ }
+ else
+ {
+ usnprintf(TMessage, 100, "ThreadPrepare_Tension Dancer %d Request: %d Current %d movement %d dir %d motor %d address %d",
+ DancerId,request,current,movement,direction,HW_Motor_Id,address);
+ ReportWithPackageFilter(ThreadFilter,TMessage,__FILE__,address,current,RpWarning,request,0);
+ }
return status;
}
//********************************************************************************************************************