From 540272c93c7d0b4a12ea797c996f2c9ddf2a5bbb Mon Sep 17 00:00:00 2001 From: Shlomo Hecht Date: Sun, 22 Apr 2018 13:58:32 +0300 Subject: 1. IfIndex in control interface 2. container.c moved to communication --- .../Embedded/Modules/Thread/Thread_print.c | 40 +++++++++++++++------- 1 file changed, 27 insertions(+), 13 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 fb9740dec..92037d0b5 100644 --- a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c +++ b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c @@ -49,11 +49,17 @@ uint32_t ThreadPreSegmentState(void *JobDetails); //////////////////////////////////////////////////////////////////////////// -uint32_t ThreadSpeedControlCBFunction(uint32_t deviceID, uint32_t ReadValue) +uint32_t ThreadSpeedControlCBFunction(uint32_t IfIndex, uint32_t ReadValue) { //read value is the dancer angle - int i,index=MAX_THREAD_MOTORS_NUM; - for (i=0;i>8 != IfTypeThread) + { + LOG_ERROR (IfIndex, "Wrong Interface type"); + return 0xFFFFFFFF; + } + index = IfIndex&0xFF; +/* for (i=0;i>8 != IfTypeThread) + { + LOG_ERROR (IfIndex, "Wrong Interface type"); + return 0xFFFFFFFF; + } + index = IfIndex&0xFF; + + /*for (i=0;i