00_THZ.pm: minor change in sub THZ_ReadAnswer($)

git-svn-id: https://svn.fhem.de/fhem/trunk@7539 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
immiimmi
2015-01-12 20:23:17 +00:00
parent 04ca70103b
commit fa030d8e0a

View File

@@ -758,7 +758,7 @@ sub THZ_ReadAnswer($)
my $count =1;
my $countmax = 80;
#$countmax = 80 if (AttrVal($hash->{NAME}, "firmware" , "new") eq "2.06");
while (((length($data) = 1) or (($data =~ m/^01/) and ($data !~ m/1003$/m )) and ($count <= $countmax))
while (( (length($data) == 1) or (($data =~ m/^01/) and ($data !~ m/1003$/m ))) and ($count <= $countmax))
{ my $buf1 = DevIo_SimpleReadWithTimeout($hash, 0.02);
Log3($hash->{NAME}, 5, "double read $count activated $data");
if(defined($buf1)) {