Compare View

switch
from
...
to
 
Commits (2)
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/root/.falinux/prime_jig/thread_func.sh
... ... @@ -45,7 +45,6 @@ function thread_tty()
45 45 THREAD_FUNC_NAME=${FUNCNAME}
46 46  
47 47 sleep 1
48   - echo $2 $3
49 48 echo "Send: [${SEND_MESSAGE}]"
50 49 echo "${SEND_MESSAGE}" > ${DEV_TTY_PATH}
51 50  
... ... @@ -58,14 +57,11 @@ function thread_rs485()
58 57 echo " @@@ [${FUNCNAME}] @@@"
59 58 echo ""
60 59  
61   - DEV_RS485_PATH=$2
62   - SEND_MESSAGE=$3
  60 + DEV_RS485_PATH="$2"
  61 + SEND_MESSAGE="$3"
63 62  
64 63 THREAD_FUNC_NAME=${FUNCNAME}
65 64  
66   - echo $SEND_MESSAGE $DEV_RS485_PATH
67   - echo ${SEND_MESSAGE} ${DEV_RS485_PATH}
68   -
69 65 sleep 1
70 66 echo "Send: [${SEND_MESSAGE}]"
71 67 echo "${SEND_MESSAGE}" > ${DEV_RS485_PATH}
... ... @@ -82,7 +78,6 @@ function main()
82 78 error_check $? ${COMPLETE_TEST_NAME}
83 79 ;;
84 80 tty)
85   - echo $2 $3
86 81 thread_tty $@
87 82 error_check $? ${COMPLETE_TEST_NAME}
88 83 ;;
... ...
scripts/thread_func.sh
... ... @@ -45,7 +45,6 @@ function thread_tty()
45 45 THREAD_FUNC_NAME=${FUNCNAME}
46 46  
47 47 sleep 1
48   - echo $2 $3
49 48 echo "Send: [${SEND_MESSAGE}]"
50 49 echo "${SEND_MESSAGE}" > ${DEV_TTY_PATH}
51 50  
... ... @@ -58,14 +57,11 @@ function thread_rs485()
58 57 echo " @@@ [${FUNCNAME}] @@@"
59 58 echo ""
60 59  
61   - DEV_RS485_PATH=$2
62   - SEND_MESSAGE=$3
  60 + DEV_RS485_PATH="$2"
  61 + SEND_MESSAGE="$3"
63 62  
64 63 THREAD_FUNC_NAME=${FUNCNAME}
65 64  
66   - echo $SEND_MESSAGE $DEV_RS485_PATH
67   - echo ${SEND_MESSAGE} ${DEV_RS485_PATH}
68   -
69 65 sleep 1
70 66 echo "Send: [${SEND_MESSAGE}]"
71 67 echo "${SEND_MESSAGE}" > ${DEV_RS485_PATH}
... ... @@ -82,7 +78,6 @@ function main()
82 78 error_check $? ${COMPLETE_TEST_NAME}
83 79 ;;
84 80 tty)
85   - echo $2 $3
86 81 thread_tty $@
87 82 error_check $? ${COMPLETE_TEST_NAME}
88 83 ;;
... ...