MAX: show more configuration, fix adding of measurementOffset

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2317 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mgehre
2012-12-11 22:43:44 +00:00
parent 3f4b504887
commit 6a834e3bec
3 changed files with 26 additions and 10 deletions

View File

@@ -129,7 +129,11 @@ CUL_MAX_Parse($$)
$rmsg =~ m/Z(..)(..)(..)(..)(......)(......)(..)(.*)/;
my ($len,$msgcnt,$msgFlag,$msgTypeRaw,$src,$dst,$groupid,$payload) = ($1,$2,$3,$4,$5,$6,$7,$8);
$len = hex($len);
Log 1, "CUL_MAX_Parse: len mismatch" if(2*$len+3 != length($rmsg)); #+3 = +1 for 'Z' and +2 for len field in hex
if(2*$len+3 != length($rmsg)) { #+3 = +1 for 'Z' and +2 for len field in hex
my $msg = "CUL_MAX_Parse: len mismatch";
Log 1, $msg;
return $msg;
}
$groupid = hex($groupid);