Skip to content

Commit

Permalink
adjust to newer netcat versions
Browse files Browse the repository at this point in the history
  • Loading branch information
john30 committed Feb 14, 2021
1 parent 024bf84 commit 65c96d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/scripts/readallvaillantregisters.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ if [ "x$1" = "x-a" ]; then
fi
for (( i=0; i<512; i++ )) ; do
h=`printf "%4.4X" $i`
ret=`echo "hex ${addr}b509030d${h##??}${h%%??}"|nc localhost $port|head -n 1`
ret=`echo "hex ${addr}b509030d${h##??}${h%%??}"|nc -q 1 localhost $port|head -n 1`
echo $i "=" $ret
done

0 comments on commit 65c96d6

Please sign in to comment.