diff options
| author | Avi Levkovich <avi@twine-s.com> | 2018-06-05 09:22:07 +0300 |
|---|---|---|
| committer | Avi Levkovich <avi@twine-s.com> | 2018-06-05 09:22:07 +0300 |
| commit | 9252f2bd838398029109afcd2e22e9c784e0800d (patch) | |
| tree | 17db539a99eb81e69bf6fd1f7adcae40412722ce /Software/Embedded_SW/Embedded/Modules/Thread | |
| parent | 49c88c7833ac3b179e8c59af11ffd3275d08bc1e (diff) | |
| parent | ac0a8a7715360263973fda940f9138cf7d5141d7 (diff) | |
| download | Tango-9252f2bd838398029109afcd2e22e9c784e0800d.tar.gz Tango-9252f2bd838398029109afcd2e22e9c784e0800d.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Thread')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c index 4129cb2b9..71a5e0dac 100644 --- a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c +++ b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c @@ -133,7 +133,7 @@ uint32_t ThreadLengthCBFunction(uint32_t IfIndex, uint32_t ReadValue) } index = IfIndex&0xFF; if (CurrentRequestedLength == 0.0) - return; + return OK; if (index != FEEDER_MOTOR) { LOG_ERROR (IfIndex, "Wrong Motor"); @@ -141,7 +141,7 @@ uint32_t ThreadLengthCBFunction(uint32_t IfIndex, uint32_t ReadValue) } CurrentPosition = MotorGetPosition(ThreadMotorIdToMotorId[index]); if (CurrentPosition == 0) - return; //unusable data + return OK; //unusable data if (initialpos == 0xFFFF) initialpos = CurrentPosition; positionDiff = Control_Delta_Position_Pass(CurrentPosition,PreviousPosition); |
