MAXLAN: correctly dispatch and display error

git-svn-id: https://svn.fhem.de/fhem/trunk@4179 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mgehre
2013-11-08 10:44:43 +00:00
parent 0450ce2dd6
commit 8a730ce86c
2 changed files with 4 additions and 2 deletions

View File

@@ -643,7 +643,9 @@ MAXLAN_Parse($$)
}else{
Log 2, "MAXLAN_Parse: Got status for unimplemented device type $shash->{type}";
}
} # if($valid)
} else {
Dispatch($hash, "MAX,1,Error,$addr,Error $errframetype in Msg type L", {});
}
$bindata=substr($bindata,$len+1); #+1 because the len field is not counted
} # while(length($bindata))

View File

@@ -769,7 +769,7 @@ MAX_Parse($$)
if(@args == 0) {
delete $shash->{ERROR} if(exists($shash->{ERROR}));
} else {
$shash->{ERROR} = join(",",$args[0]);
$shash->{ERROR} = join(",",@args);
}
} elsif($msgtype eq "AckWakeUp") {