From b32b49776b2a715645e49bb24076536530531f32 Mon Sep 17 00:00:00 2001 From: Shlomo Hecht Date: Mon, 4 Jun 2018 12:28:21 +0300 Subject: Connect/disconnect messages and some heaters control --- Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Software/Embedded_SW/Embedded/Modules/Thread') diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c index cc3e317fe..40f5bfd7c 100644 --- a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c +++ b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c @@ -133,15 +133,15 @@ 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"); return 0xFFFFFFFF; } - CurrentPosition = MotorGetPositionFromFPGA_Res(ThreadMotorIdToMotorId[index]); + 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); -- cgit v1.3.1