2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

Skip if datastring is to short

git-svn-id: https://svn.fhem.de/fhem/trunk@1664 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
sgloor 2012-06-29 08:49:43 +00:00
parent a7fc0ac44c
commit 6068d8593f

View File

@ -103,10 +103,14 @@ VantagePro2_GetStatus($)
$tel->print("TEST");
$answer=$tel->get();
$tel->print("LOOP 1");
sleep(1);
$answer=$tel->get();
$tel->close();
# print "Debug:".length($answer)."\n";
if(length($answer)>=63)
{
my $offset=1;
my $t;
my $btrend="";
@ -326,6 +330,7 @@ VantagePro2_GetStatus($)
}
$hash->{STATE} = $text;
}
}
return($text);
}