2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-17 11:26:03 +00:00

MAXLAN: ignore invalid data (which the cube sends after a reset)

git-svn-id: https://svn.fhem.de/fhem/trunk@2162 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mgehre 2012-11-23 07:32:32 +00:00
parent 9faef5fee4
commit 8769dabf0b

View File

@ -499,6 +499,7 @@ MAXLAN_Parse($$)
Log 5, "bindata: ".unpack("H*",substr($bindata,0,$len+1)); #+1 because the len field is not counted
Log 5, "len $len, addr $addr, initialized $initialized, valid $valid, rferror $rferror1, errframetype $errframetype, unkbit ($unkbit1,$unkbit2,$unkbit3,$unkbit4)";
if($valid) {
my $shash = $modules{MAX}{defptr}{$addr};
if(!$shash) {
@ -532,8 +533,9 @@ MAXLAN_Parse($$)
}else{
Log 2, "Got status for unimplemented device type $shash->{type}";
}
} # if($valid)
$bindata=substr($bindata,$len+1); #+1 because the len field is not counted
}
} # while(length($bindata))
if(!$hash->{gothello}) {
# "L:..." is the last response after connection before the cube starts to idle