Commit 7d7f639e1a7a76e93ac4e3239cab3ccd0869e805

Authored by larche
1 parent dde2391c9d
Exists in master and in 2 other branches fhd, fhd-demo

=

Showing 1 changed file with 2 additions and 7 deletions   Show diff stats
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 ;;
... ...