Skip to content
Snippets Groups Projects
Commit 753a3e40 authored by Bruno Fernandes's avatar Bruno Fernandes
Browse files

Minor cleanup

parent 93e70fbe
Branches feat/dynamic-manager
No related tags found
No related merge requests found
......@@ -81,7 +81,7 @@ function trainidUSB(){
# Baud 115220
# Interrupt signal should be generate with CHAR STX
stty -F $DEVICE 115200 intr $STX_dec
# Reading of line stops até ETX_chat
# Reading of line stops at ETX_char
readArgs="-d $ETX_char"
fi
......@@ -107,7 +107,7 @@ function trainidUSB(){
if ! [ -z $checkCRC ]; then
#CRC calculation
crc=0
for ((i=0; i<12; i++))
for ((i=0; i<${#timingInfoData}/2; i++))
do
crc=$(($crc ^ $(hex2dec ${timingInfoData:0:2})))
timingInfoData=${timingInfoData:2}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment