Revision e66d0e5c util/read

View differences:

util/read
8 8
sleep 0.1
9 9

  
10 10
response=`head -c 5 /dev/ttyUSB0`
11
ok=`printf "\001"`
11
ok="\001"
12 12

  
13 13
if [ ${response:0:1} = $ok ]; then
14 14
  echo -n ${response:1} | xxd

Also available in: Unified diff