From 65c96d6d8cfe069f2c311dc168cf245428452990 Mon Sep 17 00:00:00 2001 From: john30 Date: Sun, 14 Feb 2021 16:48:47 +0100 Subject: [PATCH] adjust to newer netcat versions --- contrib/scripts/readallvaillantregisters.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/scripts/readallvaillantregisters.sh b/contrib/scripts/readallvaillantregisters.sh index cdd6dc477..b422b9ea8 100755 --- a/contrib/scripts/readallvaillantregisters.sh +++ b/contrib/scripts/readallvaillantregisters.sh @@ -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